do you need the regex? you could check explicitly for `foo`