Retirement tax questions

The excessive contribution happened in 2022 and I withdrew the excessive amount by myself and added it to Other Income in 2022 tax return (1040 8f Income from Form 8889).

 

Yes there is a distribution code in box 3 of '2'. 1099-SA box 2 amount was the earning and box 1 was the sum of the excess withdrawn plus the earning in box 2.

 

Thank you!