Worm on glass of tank

Hi I saw this worm at the bottom of my 20 gal high planted aquarium. I can’t really see the planaria head but I’m not sure if it is planaria or something else? Currently there are 5 forktail rainbowfish and 1 dwarf gourami in the tank and both species spent 1 month in a quarantine tank showing no symptoms of anything. This is a natural planted aquarium with driftwood and dragontsone. Does anyone know what it is? (Sorry for the unclear pictures and videos, I can’t get my iPhone 12 to focus clearly). This tank also has hydra which I’m trying to starve out and hopefully my dwarf gourami helps me a bit. Particles floating in video are frozen baby brine shrimp.