I think that at least in tech it was only ever a thing in companies that didn't know better.
I mean, I throughout my career I was fired multiple times and at least twice that resulted in a 3-month gap, only one of them being voluntarily that long.
I now take them on purpose and collected a total of five over the course of 10+ years.
I don't remember anyone ever even touching the subject - perhaps there's something about the date format I'm using in my CV (MM-YYYY - MM-YYYY/present).
In any case my experience is that companies with such ridiculous criteria end up hiring contractors to fill their gaps - this time in their workforce.
Contractors, naturally, don't go through nearly the same recruitment process and yet they manage to do the same job and do it well - those who don't are promplty fired.