public function getRegex()
    {
        /** @var ApiRegex $constraint */
        if ($constraint = $this->docBlockUtility->getConstraint($this->property, ApiRegex::class)) {
            return $constraint->pattern;
        }
    }