Got this error when  selecting a command (that uses #!/usr/bin/python)
(under Monterey 12.1 beta)… 
Screen Shot 2021-10-09 at 12.41.46.png