did I make nondeductible contribution in 2020?

I did a contribution in 2021 but before 2020 tax due day. Should it be counted as 2020 contribution, and treated as 2020 basis?

 

but my 1099 R add this 2020 contribution to later 2021 contribution, TT reported excess 2021 contribution…

 

Was 1099 R from my bank wrong?