You can remove a lot of things from city water but pharmaceuticals ain’t one of them.
Yikes...
I really wish I knew more about water filtration, at all levels of sophistication. Sounds like removing these would require distillation.