Returns an exception group that contains only the exceptions from the current group that match condition, or None if the result is empty.
builtins/BaseExceptionGroup.subgroup
BaseExceptionGroup.subgroup