Those worms seem to be above the water line. If that's the case then they are probably maggots of some kind, at least where I live, there are fly species that love to lay eggs in high-humidity environments and as such end up doing it in people's aquariums sometimes, and those in the pictures look like them. they are quite harmless and in fact some fish love to eat them.