Get your taxes done using TurboTax

When did you get divorced?  If you were still married in 2020 he could not claim you as a dependent.  He probably just filed a Joint return with you.