In nearly 20 years of doing this I’ve have never had one of these dreaded fake developers make it through the resume screen, initial phone call, and a conversation with an engineer.
And if I did, we’d just fire them as soon as it was clear they lied about their ability.
I have had plenty of the other extreme, very technically proficient developers who turned out to be terrible employees for other reasons.
My initial point is that if you can afford to make your screening process arduous enough that you’re turning away otherwise qualified people because they don’t want to work for you bad enough to jump through your hoops, then there’s not a shortage.
If there was really a shortage, you’d do what every other industry does. Hire based on resume, and fire the fakers.