Rare earths are not as rare as the name suggests.
" The term "rare-earth" is a misnomer, because they are not actually scarce, but because they are found only in compounds, not as pure metals, and are difficult to isolate and purify. REEs are relatively plentiful in the entire Earth's crust (cerium being the 25th-most-abundant element at 68 parts per million, more abundant than copper), but in practice they are spread thinly as trace impurities, so to obtain rare earths at usable purity requires processing enormous amounts of raw ore which is costly and energy intensive. " https://en.wikipedia.org/wiki/Rare-earth_element
What radioactive element is commonly found with rare earths and has to be separated? Thorium, the same stuff that could power future nuclear reactors and is commonly found on beaches in Kerala, India.
https://www.bbc.com/future/article/20181016-why-india-wants-...
Having rare-earth minerals is one thing, being able to extract and separate the rare-earth metals from their minerals is a completely different thing.
For now, China has a huge advantage in the facilities for the chemical processing of the rare-earth minerals, so that much of what is mined elsewhere still goes to China for the extraction and separation of the metals.
Some rare-earth metals are very cheap, like cerium and lanthanum. Even neodymium is not expensive. Unfortunately most applications also need at least small quantities of those rare-earth elements that are really rare, i.e. they form a very small fraction of the rare-earth elements contained in a mineral, and whose separation from the abundant rare-earth elements is also very expensive.
So this phrase that is too often repeated "Rare earths are not as rare as the name suggests" is actually false for most of the 14 REEs. Not rare are only lanthanum, cerium and neodymium, which cover only a small part of the applications of REEs, like deoxidizers in metallurgy and glass polishing and lighters. Most magnets with neodymium must also include other much less abundant rare-earth metals, to increase their upper limit for the working temperature.