Exactly the same error happened to me after installing the jupyter-markdown extension. It also produced another error when trying to run Jupyter Desktop application on the same environment. Was able to fix it by simply unninstalling the extension with
pip uninstall jupyter-markdown
Will try jupyter-myst instead (this looks very nice https://mystmd.org/guide/quickstart)