I got mine into a specialist unit within mainstream.
Mainstream school didn't work out. Then we home educated for a while.
In the absence of school to make a referral- I persuaded the home education person at the council to do it.
The council's Area Integration Team considered his case and agreed to place him there.
I'm not sure, tbh, why it was so easy for me. We're in Scotland so the system is different. There's no need for an EHCP, for example. Which has advantages and disadvantages.
I think my slightly unorthodox route might have helped. Since home education officers have an interest in getting kids back into school. Whereas perhaps school SENCO's have pressure not to make too many referrals.
I wouldn't recommend anyone else follow my lead. Obviously if it didn't work out I'd be stuck home educating! Which, tbf, I would have been quite happy to do.
I think it did also help that the council were aware I would have gone to tribunal if needed. I wouldn't have needed a solicitor as I'm quite confident with law, having worked in a different legal field. Education tribunals are theoretically designed to be accessible to lay people so I was certainly up for giving it a go.
I feel for you, OP, and I hope you manage to get your situation resolved.
If you're in England or Wales, there's a facebook group called SEND Education for All, which seems good.
If you're in Scotland, I found the Enquire helpline very useful.