Upgraded spintax regex to safely handle normal use of curly brackets