I don’t think this is causing your problem, but this environment variable should be PARTS_PYTHON_INTERPRETER
in core22. I’ll update the migration howto accordingly (@rpjday might be interested in this change).
The reason is that plugins are now implemented in a library shared by different *craft tools, so they can’t use Snapcraft-specific variable names.