IRA Rollover Due to unintended Required Minimum Withdrawal

I accidently withdrew the Required Minimum Distribution from my IRA twice in 2022. I noticed the problem a few days after the second withdrawal. I immediately deposited that withdrawal back into the IRA to satisfy the 60 rollover so it would not count.  I received a Form 5498 that shows that rollover contribution.  However, the Form 1099-R shows the full double withdrawal amount as taxable. TurboTax wants to consider that contribution as an excess and charge a 6% penalty.  How to I get the Form 1099-R to reduce the taxable amount to not include the rollover I put back into the account?