Pattern matching has been introduced in `3.10` https://docs.python.org/3.10/whatsnew/3.10.html#pep-634-structural-pattern-matching [ ] change the docker image to python `3.10` [ ] refactor `match()`