Retirement tax questions

The W-2 box 12 code D amount is the what you contributed to your employer's 401(k).  This amount is not entered anywhere else on your tax return

 

The box 12 with a code D 23 indicates a 2023 contribution.  Do not enter the D 23 amount or code on the W-2.