prolly we should replace `fred_matching` with `std_regex` at some point