AMENDED AND RESTATED NOTE PURCHASE AGREEMENT BY AND AMONG 5E ADVANCED MATERIALS, INC., THE GUARANTOR, THE PURCHASERS, AND ALTER DOMUS (US) LLC as Collateral Agent Dated as of January 18, 2024