Zero Sympathy
On a cost basis people were happy for China to have massive stranglehold on "rare earths" * as the price was right (& mining & refining is often a relative "dirty" & energy expensive process, so avoids those hassles) as it would have been difficult to compete on price (& people are not keen on "dirty" / high energy use industries so avoided that issue).
Countries could have taken a long term security of supply approach & made sure they had mining & refining setup but as that would be seen as wasted money (as cost of the "rare earths" they produced would likely be higher than what the Chinese retailed them at).
Typically there's a big conflict between security of supply & going for cheapest supplier to keep costs down model (see it in lots of areas, not just "rare earths" e.g. in UK, we produce nothing like enough food for our population but rely on "cheap" food from elsewhere)
* Using that as general term, not the chemically accurate usage.