If I run the poetry install then the installation is failed at the pyyaml package. I removed the package and added it back so that poetry can figure out the proper version. The potential fix is to update from the 6.0 to 6.0.1 version:
# poetry.toml
...
pyyaml = "^6.0.1"
...