Sanofi has agreed to purchase its own shares worth €2bn ($2.08bn), part of a $5.1bn share buyback initiative in 2025.