That looks like a planaria. When researching if they'd make good food for fish, I did read something that mentioned they excrete a slime trail that harms shrimp, though I forget if it just paralyzed it or outright killed the shrimp. Either way, I'd recommend getting rid of this ASAP
Sent from my Nexus 9 using Aquarium Advice mobile app