Overfunded HSA - Received Corrected W2 before filing

Last year (2021), I accidently overfunded my HSA because we were on my wife's health insurance for the first 6 months and then mine in the second half of 2021.  TurboTax caught the overfunding and recommended I withdraw the amount overfunded.  I withdrew the amount in March 2022 through the HSA administrator - no taxes were paid on the overfunded amount that I withdrew.  This would have been fine because TurboTax would have corrected the amount of taxes owed.  But then, I received a corrected W2 from my employer that shows the reduced (correct) HSA contribution.  When I enter the corrected W2 information in TurboTax, everything looks good except that I haven't paid taxes on the amount I withdrew!  I'm sure this will catch up with me.  Do I wait for a 1099-SA that will show the amount of excess withdrawn?  Will that be the document that I will use to pay the appropriate taxes?  Will I pay the taxes when I file in 2023?  Thanks much!