As defined in the source code (here and here), the MATCH should be grep -q -E, rather than grep -q -e
grep -q -E
grep -q -e