Repayment on sign on bonus in subsequent year

Hello,

 

I received a sign on bonus of $44000 minus taxes and with holdings in 2022 and repaid the gross amount back in 2023. My repayment was due to not satisfying the 2 year employment limit after receiving the sign on bonus. When I repaid the gross amount back in 2023, my employer advised that there will not be a corrected W2 for 2022 and suggested that I deduct the gross amount of 44000 in my 2023 taxes. However, my employer now sent me a corrected 2022 W2 in the year 2024, just as I was preparing to file my 2023 taxes. Kindly suggest what I would need to do now to recoup the 44000 that I paid back to my employer in 2023. 

As I received a corrected W2 for 2022, do I need to amend my 2022 taxes? If yes, will amending my 2022 taxes recoup the taxes that I paid back to my employer while paying the gross amount of $44000 back?

 

Thank you in advance for your patient review and answer .