My ex & I are selling our home and will split the profit, however I moved out 3yrs ago, will we both have to pay capital gains on the profit or just me?

We purchased the home 9 yrs ago and it is in both our names.  We divorced 3 yrs ago but my ex remained in the home and I move to another residence, however both our names remained on the home.