Certainly check with the HSA custodian to see that it was treated as a contribution for 2020 as Opus 17 described. By default, custodians must treat contributions as being for the year in which the contribution is deposited unless instructed otherwise. If they tagged it as being for 2021, the deadline for getting them to correct it to be a contribution for 2020 is April 15, 2021.