Can you share what sleep meds helped you? Are you still taking them? My primary care doctor is not a big fan of sleeping meds. He also told me they are designed for short term use.
Both my primary car physician and myself aren't fans of sleeping meds either, but I absolutely needed something to help me sleep at the time.
They absolutely are for short term use. I haven't needed the meds again since, but I have a prescription filled in case I experience insomnia again. If I do, I'll likely do a sleep study as well to rule out any other issues.