Reporting 1099r code J

I made a Roth IRA contribution ($6000) in 2023 for the year 2022. I realized in 2024 that I was ineligible to make that contribution, hence removed the excess contribution in 2024 and paid 6% penalty for the years 2022 and 2023. Now, Fidelity issued me a 1099r form with distribution code J. Box 2b is checked meaning taxable amount is not determined. The amount withdrawn is only the contribution amount. Is it sufficient to report the 1099r code J form using form 1040 where line 4a will show $6000 and line 4b will show $0. Is that sufficient or there is more to it? Any clarification is much appreciated.