Rare earths are not used to make solar panels.
Straight up Solar Panel grid arrays sans that stuff, it's 2,800 kg copper and 3,900 kg Silicon per MW and not much else directly (aluminium for framing, glass protection, can be added).
( Although lots of new copper (oxide ore, the most common) requires lots of new sulphur and the world has just lost 3.8 million tonnes of annual sulphur production by product from Qatar refineries )