Setting Up Conditional Forwarding In Pi-Hole 6

That's Conditional Forwarding to alternative DNS upstreams by means of custom dnsmasq configuration rather than filtering.

See Etc/dnsmasq.d files