Fix tokenizing openssl style versions

Fixes #25736.