Alternatively, if we only need to Show products not in those groups. All we'd like to alter may be the cat_operator to NOT IN.
You may also simplify the method by incorporating the free of charge WooCommerce https://mopixiestore.com/collections/new-arrivals