After you file

You got bad advice from IRS agent.

There's no way to collect a 2023 refund on your 2024 tax return.

Since IRS has not sent it back to you, you have to amend your 2023 tax return documenting the overpayment.

 

@ipooppee