They could be flatworms, or Platyhelminthes. They're harmless. They usually mean that you're over-feeding your fish, and there are too many leftovers. You should clean your pond and re-evaluate your feeding amounts. If you see that your fish are suffering in any way, you should get a professional opinion. There are other problems that could be happening.