Fix regex for error