Excess Distribution from 529

Hi, 

 

In August of 2023, I accidentally withdrew too much for my daughters' fall semester in 2023 in the amount $4750.  The plan told us we could not redeposit the amount back into the account.

 

We received the bill for 2024 Spring semester late December but was out of town and did not pay it.  It's 1/3/2024, can I pay it now and not be subject to any penalty?  I read that there is a look back period up to 1/4/2024.  Is this correct? I live in the state of Maryland, is there any penalty for MD for this event?

 

Thanks in Advance