I contributed to a Roth IRA in 2021. My final MAGI was just over $250,000. TT did not tell me I was ineligible to contribute. How do I pull it back/pay the penalty in TT?

TT did not tell me I was ineligible for the Roth contribution when I filed. I have the same situation with my  spouse's contribution,  so I guess we have to do it twice.