You need to apply for an ITIN so that you can file married on your taxes. The IRS in the USA is quite the trip too, I file my 2021 taxes on Feb 2022, married and sent them along with an ITIN application, to make a long story short somehow my taxes and ITIN application separated, eventually in December 2022, the IRS gave me my refund and actually accepted my taxes with the all 9 number I used for my spouse social. In Feb 2023 I again filed my taxes using all 9's for my spouse social and the IRS processed it in 30 days and gave me my refund. My tax transcripts all show my spouse SS as I entered it. Finally after quite a journey, the IRS issued my spouse an ITIN two weeks ago, (from the original filing in Feb 2022,) but my spouse will be arriving on Oct 9th so we will wait until the official social is issued to update the IRS.