The meds for many people reduce sleep quality. You should talk to your doctor. Drug, dosage, and timing can help. As others said, you should do a sleep study.

One thing you didn’t mention is exercise; it may help, but it’s not a panacea. It should be completed well before sleep, as intense exercise is stimulating.

Blue light filters are simply nowhere near as effective as simply dimming the lights and taking screens out of the equation for those hours is more effective. But again, this is far from a panacea.