GNU and BSD grep both default to "basic" regular expressions and both have the `-E` switch to use "extended" expressions.
Just use Homebrew and you can install different versions of grep, including GNU's:
brew install grepMany of these utilities have been rewritten in Rust and have more modern features and are faster.
For example, instead of ls, I use exa [1]. Or ripgrep [2] instead of grep. sd [3] instead of sed.
[1]: https://github.com/ogham/exa