2020: Loss from K-1 Schedule D -3,000 used. 2021: No federal tax liability -3,000 not used. 2022: -3 000 not used. No capital gains. Tax owed 2,000. Amend?

Please help.  Only used -3000 .  There is a Capital Loss Carryforward Worksheet showing 12,395 carryforward to 2023. The 2020 loss was 21,395. Since I have a capital gain in 2023, I need to correct all.  Products used: 2020 Turbo Tax Online, 2021 Turbo Tax Online Premier Assist and Review and 2022 Turbo Tax Deluxe Desktop.  Help would be great.