Piping to grep loses the metadata and the paging, so I let journalctl do the matching.
journalctl -u ssh -g "failed|invalid user" --since yesterday
journalctl -b -g "error" --case-sensitive
-g (--grep) matches the message text against a PCRE2 regular expression and prints only the hits, with the usual timestamps. If the pattern is all lowercase the match ignores case, and a pattern with a capital letter is case sensitive. --case-sensitive forces exact case even for an all-lowercase pattern, as in the second line. It works with every other filter, so combine it with units and time ranges. It needs a journalctl built with PCRE2 support, which Debian and Ubuntu packages have.
Further reading: journalctl manual page