https://drafts.csswg.org/cssom/#parsing-selectors says to
To parse a group of selectors means to parse the value using the selectors_group production defined in the Selectors specification and return either a group of selectors if parsing did not fail or null if parsing did fail.
but there is no selectors-group in https://drafts.csswg.org/selectors-4/ (it was there in selectors-3). Furthermore, this is vague about how namespace prefixes should be handled, if at all.
Plausible answers are to just reuse https://drafts.csswg.org/selectors-4/#parse-a-selector or define some variant of it which considers the @namespace rules from the relevant sheet or something.