Match: SyntaxError: invalid syntax

yes, i use python 3.11 version native env. But streamlt seems not support this version??
And when I use if/else replace match case, it succeed