Integrate port forwarding rules with pbr

here is my configuration.
my default gateway is a wireguard interface. so all outgoing traffic goes to that interface.

I have however a host (synology nas) which goes to the internet directly using pbr.

I also have a pi-hole, this pi-hole is configured as the default dns for all the devices of the network via dhcp options. but as you know there are apps that have hardcoded dns so i want to force all dns traffic to pihole.

my problem is that as soon as i hit save and apply the changed. the port forward dissapear and i see this in system log:

Sun Mar 19 15:14:22 2023 user.notice pbr: Reloading pbr due to includes of firewall
Sun Mar 19 15:14:23 2023 user.notice pbr: Activating traffic killswitch [✓]
Sun Mar 19 15:14:23 2023 user.notice pbr: Setting up routing for 'wan/x.x.x.x [✓]
Sun Mar 19 15:14:23 2023 user.notice pbr: Setting up routing for 'wg0/x.x.x.x' [✓]
Sun Mar 19 15:14:23 2023 user.notice pbr: Routing 'synology' via wan [✓]
Sun Mar 19 15:14:24 2023 user.notice pbr: Deactivating traffic killswitch [✓]
Sun Mar 19 15:14:24 2023 user.notice pbr: service monitoring interfaces: wan wg0

i am following this guide to force all dns queires go to pihole.

but it seems it does not work with Pbr.
so how i could achieve this?