Keep in mind, the syntax changes from _ to : in Yocto 3.4 Hornister version (see docs and changelog):
_
:
PREFERRED_VERSION_openssl:forcevariable = "1.1.%"