French spacing is described by (eg) https://www.iwillteachyoualanguage.com/learn/french/french-tips/french-punctuation and https://fr.wikipedia.org/wiki/Ponctuation#En_fran%C3%A7ais
Mediawiki currently tries to ensure that the space added before a punctuation mark is a non-breaking space, but the regular expression it uses is broad and introduces errors (cf T5158, T13874).
This task is to try to both improve the rules (adding additional punctuation marks used eg in Swiss French) as well as to make it more selective so that it does not apply in situations where it is clear "French spacing" is not the intent.