There is a closed issue in the click repo about this.
A possible workaround is to run your command in subprocess with shell=True and use shell redirection instead. For example
subprocess
shell=True
subprocess.run(["echo hello world >&2"], shell=True)