Use resolvectl status instead.
It’s like something deprecates and suddenly things get broken!
In systemd 239 systemd-resolve has been renamed to resolvectl
For the most part resolvectl offers the same options as systemd-resolve, though they may be named slightly differently. Run resolvectl --help to find what you are looking for.

