Refunds made by School

Receive a refund for part of the Spring 2020 semester. I paid for that semester in 2019 with money withdrawn from NY529. Is there a tax penalty if I just hold on to that refund?