State tax filing

you did not give us the date of sale if it has in fact been sold. assuming you sold it on 6/10/2021 you would not be entitled to any exclusion since it was not your principal residence for 2 out of 5 years before the sale.

based on court decisions no partial exclusion for selling for health, change of employment or unforeseen circumstances would be available because the sale is more than 3 years from the time you moved out.  you will also have to pay section 1250 recapture taxes on the depreciation taken or should have been taken during the rental period.