Filing

You would need to adjust your 2021 return to include the losses before you can use them on your 2023 return.