The containing class is available as Regex\Exception in the www repository.
Regex\Exception
public function __construct( HH\Lib\Regex\Pattern<HH\Lib\Regex\Match> $pattern, int $code, ): void;
HH\Lib\Regex\Pattern<HH\Lib\Regex\Match> $pattern
int $code
void