Debugger fails after upgrade to anaconda 2024.02-1

Hi there. Please help. I’m on a Mac. I just upgraded from anaconda 2023.09-0 to anaconda 2024.02-1 using Homebrew (like so: brew upgrade --cask --greedy anaconda) and suddenly my vscode debugger isn’t working anymore. It fails in ‘/usr/local/anaconda3/envs/scratch/lib/python3.12/’ while attempting to find ‘/usr/local/anaconda3/envs/scratch/lib/’ ¯_(ツ)_/¯

Here’s the error message I’m getting:

Exception has occurred: FileNotFoundError
[Errno 2] No such file or directory: '/usr/local/anaconda3/envs/scratch/lib/'
  File "/usr/local/anaconda3/envs/scratch/lib/python3.12/", line 19, in exists
  File "/usr/local/anaconda3/envs/scratch/lib/python3.12/", line 88, in _run_code
    exec(code, run_globals)
  File "/usr/local/anaconda3/envs/scratch/lib/python3.12/", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/anaconda3/envs/scratch/lib/'

And here’s my vscode debugger launch configuration file:

    "version": "0.2.0",
    "configurations": [
            "name": "Python: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false

If this is not the right place to post this question, please advise where to post it.