Unable to type special characters through Screen Sharing on macOS Catalina

Double check that on the remote machine, system preferences > keyboard > input sources has only "German" on the list (and not US or something else).