On thing to check on macos: make sure the result of echo $CONDA_EXE matches with the 'Conda Path' setting in VSCode's Python preferences. Especially relevant if you have recently reinstalled Conda
echo $CONDA_EXE