Got error 'unmatched parentheses at offset 18' from regexp