You can add all the prefixes (/22, /23, /24) in Routing > BGP > Networks.
And then use separate filters on each peer to filter out which of those prefixes will be announced to each BGP peer.
I suggest you first create the filters, apply them to the BGP peers and then add the more specific prefixes to Routing > BGP > Networks so they don’t leak out before your filters are ready.
Example filters:
For your upstream (announce only /22s)