"DoH server connection error: Invalid argument" after upgrading to v7.4

Hello,

I’m currently using Router OS v7.4 with hAP ac2.
I use the following configuration for IP/DNS, which was working fine on the previous version of Router OS. (v7.3.x)

/ip dns
set allow-remote-requests=yes max-concurrent-queries=50 query-server-timeout=\
    10s query-total-timeout=1m servers=\
    8.8.8.8,1.1.1.1,2001:4860:4860::8888,2606:4700:4700::1111 use-doh-server=\
    https://dns.google/dns-query verify-doh-cert=yes

However after upgrading to v7.4, I got an error “DoH server connection error: Invalid argument” on every DNS queries.
2022-07-26 220232.png
After removing the “use-doh-server” setting, the DNS resolution works fine.