On an MX Linux (non-systemd Debian-derived distro) box I ran ldd on /sbin/ssh and also ran:
[EDIT: this string gives cleaner results:]
lsof -w -P -T -p $(pgrep sshd)|grep mem
and saw liblzma in the results of both, so there is some sort of similar trickery going on.