The \S in your regex has the meaning any single non-whitespace character. Presumably you mean one or more as in:

foo \S+ is a \S+