529 Plans

I have a question relating to the last semester of college. My understanding is that the student has to be a full-time student for 6 months to qualify as a dependent. My son did his final term, which ended in May, so he only was a student for 5 months. I used his 529 plan to cover his tuition and room and board, and the distribution came to me. I make too much to qualify for any tuition credits. Do I claim him as a dependent and not report the 529 disbursement? He went to work full-time after graduating and earned $31,000 in 2024.

 

Thanks very much!