Non-Resident Taxes removed due to incorrect Address (State of Residence)

I was separated from my company in 2018, while living in Michigan.  Then my Severance pay was stopped due to the company filing for bankruptcy.  In 2021 I moved from Michigan to Florida.  I changed my address with my Pension Department, so all correspondence comes to Florida.  Late in 2022 I received a check from a company working on the Bankruptcy, but they took out state taxes for Michigan, and subsequently filed the W2 with a Michigan Address.  I still own the Michigan home as a 2nd home.  I believe that I can simply file a Michigan Tax Return for 2022, and indicate that the money from the W2 was NOT attributable to Michigan, thus allowing me to get a refund of all taxes paid to Michigan from the Bankruptcy Severance Pay judgement.  Please advise on whether this is the proper way to handle this or not.

 

Thanks,