CodeQL library for Python
codeql/python-all 1.0.1 (changelog, source)

Predicate Make::isInsideChoiceOrSubPattern

Holds if term occurs inside a quantifier or alternative (and thus can not be expected to correspond to a unique match), or as part of a lookaround assertion (which are rarely used for capture groups).

Import path

import codeql.regex.HostnameRegexp
predicate isInsideChoiceOrSubPattern(RegExpTerm term)