Investors & landlords

 A similar question: I made too much income in 2023 to contribute to a Roth, but already contributed to a Roth in 2023.  I am 66 years old.  I had my brokerage firm today take out the contribution with earnings and place it back in the taxable account it came from intially. I put in $7,500, but with earnings, it will be $8,100 that they take out. 

 

I will not receive the 1099-R until next year.  How will the IRS know I took out the contribution and earnings before the tax deadline so I don't have to pay a penalty of 6%?  I know I have to pay taxes on the earnings.