Get your taxes done using TurboTax

The 2022 W-2 can't be changed.  You were paid what you were paid and the withholding was what it was.

 

Since you still worked for the company when making the repayment in 2024, it would be extremely useful if the company would "net out" your salary in box 1, box 3 and box 5, and show the correct social security and medicare tax in box 4 and 6.  This might require giving you a refund check for the difference in taxes.  They might or might not be able to correct the box 1 federal and box 16 state income tax withholding, but it is not really necessary since you would get that back easily on your tax return.

 

If they won't net your W-2, then I would expect the W-2 to show the total from your pay stubs ignoring the repayment (your total wages, taxes withheld, and 401k and other benefits shown in box 10 or box 12).  In that case, you can obtain a refund of the taxes from the repaid funds on your state and federal tax returns.  I'm not going to list the procedure in detail, because it would be easier if the company will net out your W-2, so you should ask.  You can post back here and I or someone else can explain the correct procedures to follow.  To obtain a refund of the excess social security and medicare tax, you will have to file a separate form with the IRS, and it would be helpful in that case to have a letter from the employer acknowledging that you did repay wages, and stating the the company will not be processing a refund of social security and medicare taxes.

 

So I;d like to you ask about netting the W-2, and if they won't do that, ask for such a letter.  Then come back here when you know more.