After much lamenting and gnashing of teeth, I've successfully created a macOS LaunchAgent (tested on 12.6.7) which periodically checks the current forwarded VPN port set by the WireGuard application and updates it in the qBittorrent configuration.
I thought I had a good lead when I discovered you...