"Python Scope: The specified Python path is not valid." Error

Did you try Studio, not StudioX?
Which is your project type (Windows or Windows-Legacy)?
Try in the failed path to add in the end “…Programs\Python\Python310\”