Tesla Model 3 uses about 5 kg of neodymium iron boron magnet in its traction motor and the small accessory (window, seat, power steering) motors now standard on all cars, ICSs or EVs. This is about 1.67 kg of neodymium/praseodymium (75/25) per 5 kg of magnets.
Global production of such magnets in 2020 was at least 150,000 mt or 150,000,000 kg, so there was enough, if all were used for this purpose, for 30,000,000 BEVs using rare earth permanent magnet motors, but there is a problem. However, REE permanent magnet motors as generators are used in large quantities in direct drive wind turbine generators and as motors are used as well as in aerospace, home appliances, cell phones (the speaker magnet and the vibration mode are forms of rare earth permanent magnet devices), personal computers, industrial forklifts, industrial motors, etc.
https://investorintel.com/markets/technology-metals/technology-metals-intel/why-lithium-and-rare-earths-are-truly-a-bull-market-and-the-ev-transition-is-just-bull/