Description of the issue
With the update from python 3.9 to 3.10, there was a big syntax change: the introduction of pattern matching (match/case statements)
We want to review if we should be using them instead of if/else statements in some of the modules to improve readability/extensibility