Big name manufacturers are refusing to invest in fab expansion because they believe (correctly) that total demand for semiconductors has barely moved. What has changed is the confidence in the market (and this was destroyed by a major fuckup by car manufacturers deciding to screw over their suppliers at the expense of literally the entire industry). Nobody is actually producing more electronics (many manufacturers are producing less because they need to ration supply and can't allocate as much to specific products and risk not being able to produce others). Everyone is buying more, because they can't be confident they'll be able to get stock when they need it.
Chip manufacturers know that anything they put on the market now will be gone immediately, at any price. They also know that one day everyone will have enough stock stockpiled and will stop buying for a while. If they increase production now, they have added expenses and a limited time to recoup them before there's oversupply on the market. If they keep production at current levels, they get more revenue as the prices are higher, and lower costs so they can weather the coming overproduction phase better. It makes zero economic sense to expand production.
Some chip manufacturers are asking customers up front for demand visibility several years out to be able to plan better. Others are being absolute dicks and doing the same thing in an openly-hostile way by holding customers hostage (yes we know you ordered two reels of this part and we promised delivery by date X. We won't deliver on date X unless you also order and pay for another ten reels which we won't commit to a delivery date on, and also your order for the two reels is non-cancellable and non-refundable). I can't name this company because it would put the customer at risk, but they're a household name in the industry.
The core problem is everyone is operating in the dark and there's no visibility into future demand, supply, pricing, or availability. In this situation, large capital expenses make sense on the buyer side (to ensure future supply and widen their visibility horizon) but not on the supplier side (who then shoulder the risk of future demand cratering and being left sitting on their capex).