Remove unnecessary brackets from regex.