Updated the regex to fix error