The main thing to do IMO is spend time building a network. A recommendation in the right place at the right time can open doors that would otherwise be closed to you.
School is an option, but the opportunity cost has been too high so far for me. Though doing a freelance PhD thesis probably wouldn't hurt.
I have watched that diminish over the last 20 years.
The unspoken secret in programming is that a CS degree basically signals absolutely nothing about programming skill. You can get a 1st in CS and be a rubbish programmer, you can get a chemistry degree and be an amazing one. A lot of CS is utterly irrelevant to programming, and the vast majority of programming skills are not covered by CS degree.
Once you're past 2-3 years experience it stops being relevant, before that it's a way to filter CVs by managers who want to pretend their CS degree wasn't a complete waste of time.
If they're asking for a CS degree for a senior role it's basically advertising they're a clueless company.
Yep, the people who graduated about 3-4 years ago are all making more than I do after more than a decade. It seems like that's just how it works.