An employee of a youth correction facility or a juvenile detention facility established under ORS § 419A.010 to 419A.020 and 419A.050 to 419A.063 who uses restraint or seclusion on a student in connection with a Youth Corrections Education Program or Juvenile Detention Education Program, as those terms are defined in ORS § 326.695, is not subject to the prohibitions under ORS § 339.285 to 339.303. [2023 c.495 § 14]