Reverse engineering is allowed under French law, there are specific legal exemptions around that.
It's common to see EULA/license/contracts with clauses that prohibit reverse engineering, these clauses are void in France and many other jurisdictions.
Article L122-6-1 https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI0000...