Generally, you can only skip one version. So, you may need to step to 2016, then to 2022, but you must use licensed install media. Evaluation media cannot be used for an in-place upgrade.
--please don't forget to close up the thread here by marking answer if the reply is helpful--