Took about 3 months for me to fully get back to a normal sleep schedule. Not sure it’s ever fully returned. For me routine is key. I’m pretty boring these days my nights are spent relaxing and getting myself in a great place to sleep.
I started running for exercise that fixed me right up.
Take magnesium you can do melatonin too, eventually I didn’t need that anymore and thankfully because it gave me the wildest most vivid dreams! And like Edward says being active and wearing your brain and body out make a huge difference along with stretching. Lots of guided meditation apps for sleep too. I really like aura, they have different soothing sounds like rainfall you can put on to help too!