Retirement tax questions

You have to enter the 2023 W-2 you received from your employer as received on the 2023 tax return. 

That includes all the boxes 1 thru 6.  Federal taxes withheld, Social Security taxes withheld and Medicare taxes withheld.