Yes, you will be unlicensed for the 2022 VM.
Windows Server OSEs are backwards compatible, not forward. With 2019 Standard you're only licensed for up to the 2019 version, for a 2022 version you'll need to provide and "assign" a 2022 Standard license to the host.