Wait for the IRS to fully process the return and then you will have to amend it to remove the 2021 W-2 and enter your 2023 W-2 instead. Do not try to make any changes until the return has been processed. Sometimes the IRS catches mistakes and fixes them for you.
See this TurboTax support FAQ for amending a tax return - https://ttlc.intuit.com/turbotax-support/en-us/help-article/tax-return/amend-change-correct-return-a...
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**