Update settings regexes to support settings containing square brackets

... and single-quotes.

We have config files with settings similar to:
```
xyzzy['thing1']['thing2']=xyzzyvalue
```
Currently these are applied at each run, as @@SETTING_REGEX does not match.

This PR updates the settings regexes to detect settings similar to the one above.