Rare earth elements (REEs) are pivotal in many modern technologies, ranging from renewable energy systems to advanced electronics, owing to their unique optical, magnetic, and electronic properties.