I too think it is safe, but here's a method I used for many years to protect temp probes. Even waterproof ones eventually failed, IMO, when soaked 24/7 for years.
I took a section of tubing just a little larger in internal diameter than the temp probe, and a little over twice as long as I wanted the probe deep in the water.
I sent the probe down to the middle of the tubing, bent the tubing back on itself just past the temp probe, and twist tied it to itself back at the openings.
The probe is now inside a section of plastic tubing, as long as you like, and water cannot get to it, but heat can.
The probe response is a little slower due to the time for heat to penetrate the plastic,. but for an aquarium temp controller, that's no big concern since the temp moves slowly anyway.
Worked perfectly for more than a decade. :)