Update settings regexes to support settings with "[", "]" in them
Add tests to cover settings with square brackets and quotes in the name