From what I can gather this only applies if you have been to Cuba since 12th January 2021.
This is based off information here: https://fr.usembassy.gov/visas/nonimmigrant-visas/restrictions-use-esta-affecting-french-nationals/
There is also a relevant thread here...