Sleep maintenance insomnia and anti depressants

Has anyone had CHRONIC sleep maintenance insomnia (falling asleep ok but waking up too early can’t go back to sleep) and found relief from starting an anti depressant? I’ve tried ruling out every cause of this issue (waking up after 4-5.5 hours and can’t sleep again for 2 years going on three now), and the only thing I can think of is that I stopped taking anti depressants around the time it first started. I’ve balanced my hormones, done all the lifestyle things and every blood test has shown no obvious cause. I feel so hopeless and scared to go back on antidepressants because I’ve tried over 20 and most mass me so much worse, but this is my last hope:( Can depression really cause this? My mind isn’t even racing when I wake up, it just keeps happening regardless…