Get your taxes done using TurboTax

under the code section 1341 if the repayment is in a year different than received you do not amend the return for the year received. You adjust the return for the year it was repaid in your case 2023

you have two options 

1) take as a deduction on schedule A line 16 denote as IRC 1341 repayment for the $57K OR
2) recompute the taxes in the year you received the payment by reducing the amount in box 1 of the original W-2 by the amount included for the bonus, relocation and taxes imputed on that income - should be the 57K.
the decrease in taxes is taken as a credit on schedule 3 line 13b in 2023

\

see iRS PUB 525

 

you do not file an amended return for 2021 because only boxes 3-6 were changed. because