PEP 675 – Arbitrary Literal String Type | peps.python.org
There is currently no way to specify, using type annotations, that a function parameter can be of any literal string type. We have to specify a precise literal string type, such as Literal["foo"]....
peps.python.org