Had the same thought about planaria reading that, or there are as well some smaller kind of free living worms (nematodes) that are common in fish tanks. I'd consider both kinds harmless when it comes to doing harm to fish, they might be an indicator though that there is too much waste in the tank or substrate if they appear in really big numbers.
Being careful not do overfeed and doing regular thorough gravel cleaning should keep them in check, else there are fish that love to eat such critters - think macropodes for example if I remember correctly - but will neither get all of them. And that isn't really practicable neither. The best method is certainly what Penn said, but yes, who wants that.
Water parameters would be nice to know as far as nitrates etc. go, and I'd personally be careful with adding chemical remedies, especially repeatedly ... dunno what's in those you use, but some that are meant for snails and such contain copper or similar stuff that isn't healthy for fish neither. Copper in particular is famous for causing sudden deaths in plecos a long time after treatment.
Hope there is nothing wrong with your Oscar, and keep us posted.