That only leaves @avb66 suggestion that you’ve set a shell alias for python pointing to the 3.12 version.