Fix regex for check