The second bug at the end, I have no idea I'm afraid! I wouldn't be too alarmed by it, all kinds of critters and micro-organisms wind up thriving in our tanks - but you're right to want to ID them.
The worm things are easier, pretty confident that they're detritus worms. Those aren't harmful to the tank or fish, they live in the substrate and nom their way through the mulm, helping to break everything down. But if the substrate isn't getting cleaned as often as it needs, or there's something like an uneaten chunk of algae wafer on the substrate, they sometimes wind up climbing the glass to eat that food - and all the excess organics in the substrate has caused a population explosion in the worms, so people see them climbing the glass and freak out, having never known they were there! The flake food collecting there is likely why you've spotted them now.
No need to try to eradicate detritus worms, since they're normal and helpful. But seeing them does mean it's time to step up substrate cleanings, and check if you're perhaps over-feeding.
I notice you have duckweed though, any chance that any of your plants were grown in outdoor ponds? Sometimes creepy crawlies (thinking of the first bug I mentioned here that I can't ID) wind up in our tanks that way. Many harmless, but there are a few that can be a risk to fry and shrimp, like hydra and dragon or damselfly larvae. Your mystery bug isn't one of those, just mentioning them as potential transfers from plants grown in outdoor ponds or tubs