Retirement tax questions

Working on my 2019 taxes with Turbo Tax filing as single...

I turned 70.5 in 2019, retired and earned less than $5K on some part-time work. I was told I can invest the equivalent amount I earned into my Roth as it's less than $7K.

But TT tells me my AGI is more than the $137K max and have to reverse the deposit or incur penalty.

Responses please. Thank you.