It's certainly true that STM32 availability is particularly poor right now, but "10-20 times" is nonsense.
I've spent the last few weeks helping customers manage a number of component availability problems. In some cases it's just been logistics, contacting potential alternative suppliers on their behalf.
In others, it's been designing new products based around whichever parts are actually in stock and available to purchase right now, rather than the 'ideal' best trade-off between cost and capability that I might choose during more 'normal' times. It's much better to design in a part that costs, say, £7.50 and is in stock today, than one which would normally be £5 but is out of stock, even if that means there's memory capacity that will never be used.
STM32 parts are particularly good for having pin-to-pin compatibility across different parts in the range. If you can't buy the part you originally designed in, it's definitely worth looking to see if there's a part which has more memory, more internal peripherals, or even an upgraded core. Chances are, if there is, it'll be 100% binary compatible.