This all pre-dated the COVID related supply chain issues, BTW. Lack of battery supply is behind the lackluster inventory (and therefore sales) of all non-Tesla vehicles for over half a decade.
I say all this not as a Tesla fan, but as a GM electric vehicle owner. GM was unable to produce more then a few tens of thousands of Bolts a year -- not because consumers didn't want them, but because there was simply no way for them to get them from LG Chem. VW/Audi group has had the same issue. They're both not late to the game on EV tech or production, but very late to the game on battery production.
Being late to the game in this case has a huge cost. And various governments wasted time and money providing consumer subsidies for EV purchases thinking this would lead the market to magically "solve" the EV supply issue by increasing consumer demand when the issue that really needed solving was volume and cost of battery production.
If we were going to involve public dollars in getting EVs to market we should have invested massively in encouraging battery production. Some governments are waking up to this now at least.