The grep command supports perl-flavored regular expression pattern matching. Rather than grepping for specific words, you can use regex with grep to find patterns throughout a text or command output.
Using the underlying regex crate (i.e. removing the code above and just doing a BufReader.lines() and then Regex.is_match() works as expected I admit I might do something very very dumb, but I cannot ...