You'll receive a Form 1099-R in 2025 since the withdrawal happened in 2025. However, the earnings need to be reported on your 2024 return, so you can report it now to avoid having to amend your return later.
See the help article What if I Have an Excess 401(k) Deferral? for steps on how to enter in TurboTax.