After you file

If you use your allowed 2023 contribution to offset the excess, then you still need to amend 2023 to attach 2023 Form 5329 to show that but there is no penalty.

 

@Paulsoncall