Unsure of what you did ... did you file a 2021 extension with a payment by 4/15/22 ? If so did the extension payment show up on line 31 of the form 1040?
To enter, change or delete a payment made with an extension request (Federal, State, Local) -
On the next screen select the type of extension payment made and click on the start or update button
Or enter federal extension payment in the Search box located in the upper right of the program screen. Click on Jump to federal extension payment
The federal extension payment will be shown on Schedule 3 Line 10. The amount from Schedule 3 Part II Line 15 flows to Form 1040 Line 31.
How did you pay it? Did you use a 1040ES slip? Or pay online and selected 2022 instead of 2021? How do you know it was applied to next year?
only a refund can be applied to next year.
If you want to make a payment for next year you must select "Estimated Tax"
payment made with request for extension of time is for this year.
payment made in 2022 with request for extension of time for 2021 is for 2021 tax year.
If you want to make a payment for 2022 you must select "Estimated Tax"