Thanks, fixed many of the problems. Apparently Wired.h needs now a package called soc/soc_caps.h. After trying to verify the code it also gave an error about "Multiple libraries were found for "WiFi.h" therefore not being able to compile.
Seems new leaks are found when the old ones are covered.
UPDATE 21.02.2024
Emigrated back to arduino IDE, maybe trying the extension later with a new board.