private function getVarRegexes() : array
    {
        $variableRegexes = [];

        foreach ($this->groupOptionsStack as $groupOptions) {
            if (isset($groupOptions['vars'])) {
                $variableRegexes = array_merge($variableRegexes, $groupOptions['vars']);
            }
        }

        return $variableRegexes;
    }