After you file

I think you are saying that your employer reimbursed your 2021 withheld state income tax amount because you are not working MA.  To get back the state income tax that you paid to MA in 2020, file an amended MA return and change the amount of income earned in MA.