If it was on the anemone, it's probably an anemone parasite. I haven't heard of anemone eating flatworms, but then again, we know about 1% of the flatworms in the ocean.....so yes, I think I would remove it.
If so, it's an amazing creature that can withstand an anemone's sting. Pretty awesome.