It is most likely a bloodworm, they eat detruis and wood I get colonies of them in my pond and any where water has sat for periods of time with wood or leaves in it. Bloodworms are just the larval stage of gnats and harmles to you and your fish, and fish love eating them so a handy snack to keep a colony of.