We mostly don't use rare earths to make renewable energy at all. Solar panels and lithium batteries don't have any rare earths in them. Most wind turbines do: https://publications.jrc.ec.europa.eu/repository/bitstream/J... but Amory Lovins argues that the advantage of doing so is small or even nonexistent: https://rmi.org/rmi-reality-check-greener-friendlier-alterna...