VMX-pi supports WPILib 2020.
The navX json files for 2021 and 2022 are used for the navX-MXP and navX-Micro sensors used in FRC and FTC robotics, and will not work with VMX-pi.
VMX support for WPILib 2022 is currently planned to be available after this year's FRC season (and all of the changes to WPILib that will go along with it are completed).
Note that each season's version of WPILib has a matching version of VSCode - and multiple versions of VSCode can be installed at the same time (side-by-side).
- scott