What to do if deposited RMD to a traditional IRA by mistake?

Please provide steps  to correct above mistakes. I know I can characterize the IRA deposit to Roth because I have w-2 earnings to cover the RMD amount.  I will report the RMD on 2023 tax.  Does turbotax help with form 8606?  Will I subject to penalty?  Thank you very much!