You can claim medical expenses for any 12 month period that ends in the year you are doing taxes for. So, on your 2023 tax return, you will not be able to claim any expenses from 2021, but you might be able to claim expenses from 2021 on your 2022 tax return.