Retirement tax questions

Thanks for that answer.  Two small clarifying questions.  If I remove the excess and the earnings on that excess prior to April 15, 2021, would I owe a 10% penalty on the earnings or only the normal tax rate for my income level?  If over a year since the investment, would that be considered a long-term capital gain or a short-term capital gain.