How to disable the enforced phone format?

After upgrading from V23 to V24 we are now enforced to enter phone numbers in a format we do not want. For six years we have entered in the format 0XXX-YYYYYYYY, but now Dolibarr is enforcing to enter as 0XXXYYYYYYYY which in turn gets converted to +46XXXYYYYYYYY.

We don’t want this. What setting do we change to turn that off?

If you look for the PR that made this change, perhaps you can see if there is a workaround

https://github.com/Dolibarr/dolibarr/pulls