I’m not sure if the idea has been floated before but perhaps an “Advanced Filter dialog” would be cool? e.g. Use System Track to highlight range > open the “dialog” > choose only what you want selected or deselected.
Even cooler: the dialog that pops up could only contain notations that are in the selection. i.e. if you select a range that doesn’t contain dynamics then dynamics will not be available to select/deselect.
Even cooler: you could choose which instrument or instruments that you want this filter.