They're just going to have to bite the bullet and pay more. It really is that simple. If they can't find developers, they aren't paying enough and are trying to cheap out on talent acquisition.
But there is this deeply rooted notion that software engineers are not supposed to make as much a judge, a doctor or a higher-rank bureaucrat of the public sector. The current bewildering is more cultural than anything else.
There's this notion that doctors are well paid but they're not. It's just that every other profession is incredibly undervalued and should be paid more.
The doctors I know still make many times more than a software engineer with a remote job. And they deserve it.