This group notation is preferred since Poetry 1.2.0 and not usable in earlier versions.
[...]
Poetry will slowly transition away from the dev-dependencies notation which will soon be deprecated, so it’s advised to migrate your existing development dependencies to the new group notation.
From https://python-poetry.org/docs/managing-dependencies/#dependency-groups: