Important to remember as we try to get our college students back to school: Distributions from 529 plans must be used to pay qualifying expenses incurred during the tax year.
If you receive a refund of tuition, fees, or room and board paid from 529 plan funds, put that money back into the 529 plan within 60 days.
See this article for more specifics.