If you filed the 2023 tax return -
Once a tax return has been filed it cannot be changed, canceled or retrieved
You will have to wait for the IRS to either Accept or Reject your filed federal tax return.
If the return is rejected you can make the necessary changes and e-file again.
If the return is accepted you will have to amend your original tax return. An amended return, Form 1040-X, can only be printed and mailed to the IRS if the original tax return was not e-filed. The IRS will take up to 20 weeks or longer to process an amended tax return.
Before starting to amend the tax return, wait for the tax refund to be received or the taxes due to be paid and processed by the IRS.
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-already-filed/L4VjJ9BA2_US_en_US?uid=ld1n99kr
As DoninGa mentioned, if you already sent your return you will have to wait until the return gets rejected or accepted to make the changes you need.
If you have not sent the return, here is how you can correct your Social Security Number (SSN):
If your return was rejected, you will be able to make any changes as if the return had not been filed yet.
If you need to file an amendment, you will have to wait until your return is completely processed by the IRS. If you do need to amend follow this link for more information.