The product is quite safe. The toxin that the worms release when they die is very bad. If you want to nuke a few, then your tank will hardly notice, but you need to run a lot of GAC and have some water on hand for a water change. Don't wait until you have a bunch because it can kill/stress your fish and coral. I had them once, waited too long and spent two weeks siphoning what felt like trillions of them. When I treated all of my acros bleached and it took months for the reds to come back, but the blues came back in a week. I did two more treatments to get the remaining stragglers and nothing even missed a beat.
FWIW - you can buy Levamisole as a livestock dewormer called Prohibit. I got mine on eBay. I am going off of memory, but IIRC, 1/2 teaspoon in 500ml water bottle and then 1ml per gallon of tank water - this should be easy to look up. You can treat thousands of gallons of water with this stuff whereas Flatworm Exit gets really expensive on large tanks.