I was prescribed melatonin when I was 11. In the UK it is only available via prescription (source on that: https://www.simpleonlinepharmacy.co.uk/health-advice/sleep/melatonin/why-is-melatonin-banned-in-the-uk/#article )
My sleep schedule was haywire (hormones + emerging gender dysphoria did not help) but melatonin really helped me. I also think it helped my anxiety a bit? I’m not sure if that was just bc I was sleeping better but I have terrible social anxiety and it seemed to take the edge off it. anyone else? :)
I’m glad your son’s doctor was able to sort it out! That sounds like a significant improvement.
There are plenty of medications and even vitamin supplements that can interfere with sleep (e.g. don’t take Vitamin D in the evening), so it’s good to look into whatever medication one is taking as well.