turns out you are correct about beaches, the french beach burkini ban was a local ordinance which was thrown out. However, swimming pools still require less clothing:
Burkini ban: https://www.nbcnews.com/news/world/france-court-rules-burkin...
And in that article, on swimming pools:
> Clothing rules in public pools in France are strict, for what authorities say are reasons of hygiene: caps are required, and baggy swim trunks or other voluminous clothing is generally banned. Wetsuits are not allowed in many pools too, as are some sun-protection suits.
Officially this is a matter of public health, but it's a pseudo-scientific law that likely has more to do with French culture and national identity as a more libertine place (or else)