If you receive a refund from an Eligible Educational Institution for Qualified Higher Education Expenses that were paid from money withdrawn from your Account, you can:
Pay for Other Qualified Higher Education Expenses – you can use the funds to pay other Qualified Higher Education Expenses incurred by that Beneficiary in the same calendar year.
Recontribute Refunded Amounts to a 529 Account – if a student receives a refund of Qualified Higher Education Expenses that were treated as paid by a 529 distribution, the student can recontribute these amounts into any 529 account for which they are the beneficiary within 60 days after the date of the refund.  The amount recontributed cannot exceed the amount of the refund.
EXTENSION OF TIME – for refunds made on or after February 1, 2020 and prior to May 16, 2020 the IRS has extended the time to recontribute funds to the greater of 60 days or July 15, 2020.
You should consult with your financial, tax or other advisor regarding your individual situation.