No, match
has not been depreciated or removed.
It sounds like you are using an old version of Python, not 3.11 as you think. If you are using Thonny, you should follow the same instructions I gave and make sure that you are using the right Python interpreter. If you are using something else, you should tell us what you are using.