Can I Get Social Security from My Ex?

I am now 60 and understand I can’t apply for Social Security for another two years. What if my ex or I remarry? I was a stay-at-home mom most of our marriage of 27 years. My benefits will be much smaller than his.