Fix type check regexp