"Windmills" and electric cars do not, in fact, rely heavily on rare earth materials. Enormously more are used, e.g., in quadcopters. Even in places where powerful rare-earth permanent magnets are now important, they will soon be largely displaced by nitrogen-iron magnets, which are both radically cheaper and more powerful.
Google data centers are not examples of a "green energy transition".