You file an amended 2021 return before the April 15th deadline. After that date you can't qualify for a refund from 2021 anymore.
@davd-cartr