Part II line 26 of your 2022 form 8801 shows the AMT carryover to 2023
this (should) appear(s) on Part II line 19 of your 2023 form 8801
the amount used in 2023 appears on line 25 of that part with any carryover to 2024 on line 26
it may be that the loss on the stock does not recoup any of the AMT tax you paid in 2022. you have to review the entire form to see what is happening.