The example in https://typing.python.org/en/latest/spec/literal.html#literalstring-overloads doesn't type check in pyright because the overloads overlap unsafely. (Mypy doesn't support LiteralString; I didn't try other type checkers.)
Maybe the section can just be deleted as it doesn't specify any behavior, it's just usage examples.