After you file

@Sharony 

If a contribution is for tax year 2023 (including contributions made before the filing deadline in 2024 but treated as 2023 contributions), then the earnings that are withdrawn as part of the corrective distribution are reported on the 2023 tax return.