in this subsection to the term qualified higher education expense shall include a reference to expenses for fees, books, supplies, and equipment required for the participation of a designated beneficiary in an apprenticeship program registered and certified with the Secretary of Labor under section 1 of the National Apprenticeship Act ( 29 U.S.C. 50 ). . (b) Distributions for certain homeschooling expenses Section 529(c)(7) of such Code is amended by striking include a reference to and all that follows and inserting include a reference to— (A) expenses for tuition in connection with enrollment or attendance of a designated beneficiary at an elementary or secondary public, private, or religious school, and (B) expenses, with respect to a designated beneficiary, for— (i) curriculum and curricular materials, (ii) books or other instructional materials, (iii) online educational materials, (iv) tuition for tutoring or educational classes outside of the home (but only if the tutor or class instructor is not related (within the meaning of section 152(d)(2)) to the student), (v) dual enrollment in an institution of higher education, and (vi) educational therapies for students with disabilities, in connection with a homeschool (whether treated as a homeschool or a private school for purposes of applicable State law). . (c) Distributions for qualified education loan repayments (1) In general Section 529(c) of such Code, as amended by subsection (a), is amended by adding at the end the following new paragraph: (9) Treatment of qualified education loan repayments (A) In general Any reference in this subsection to the term qualified higher education expense shall include a reference to amounts paid as principal or interest on any qualified education loan (as defined in section 221(d)) of the designated beneficiary or a sibling of the designated beneficiary. (B) Limitation The amount of distributions treated as a qualified higher education expense under this paragraph with respect to the loans of any individual shall not