fix issue 11775 std.regex should check for valid repetition range