Capitals gains divorce and remarry

My fiancé owned a home and sold it in a divorce last year and plans to claim his half of the capital gains exclusion from that sale. I own a home where we both live now that I have lived in for 10 years. If I sell this home and we get married and buy a home together can we file jointly and me still file a capital gains exclusion on my home even though he filed on his lease than 2 years ago?