def METHOD_NAME(
    cls, raw: str, indirect_selection: IndirectSelection = IndirectSelection.Eager
) -> "SelectionCriteria":
    result = RAW_SELECTOR_PATTERN.match(raw)
    if result is None:
        # bad spec!
        raise DbtRuntimeError(f'Invalid selector spec "{raw}"')
    return cls.selection_criteria_from_dict(
        raw, result.groupdict(), indirect_selection=indirect_selection
    )