Bug report
Currently posixpath.expanduser() only supports ASCII user names in bytes paths. It supports non-ASCII user names in string paths. ntpath.expanduser() also "supports" non-ASCII user names (although this support is only a guess, but non-ASCII user names are not discriminated).
So I consider is as a bug.
Linked PRs