Pretty simple solution -- wear it on a chain tucked inside your shirt during those classes, or keep it in your pocket, and put it back on your finger afterwards. No big deal.
“The principal said, and I quote: “’The ring would be extremely dangerous in PE, technology or science lessons.”
Clothes could be, too. They could get caught in something or catch on fire.