bash_completion: Fix -- flags detection

This fixes the help flags detection regex.
The previous regex expected flags to have a colon trailing the flag
name. This resulted in no flags ever being reported by the _flags func.
This colon does not appear to exist anymore in the --help menus.

This fix changes the regex to look for -- flags that contain
alpha numeric characters, =, -, or _s.

BUG=none
TEST=cros_workon --<tab><tab>
TEST=cros_workon start --<tab><tab>
TEST=setup_board --<tab><tab>

Change-Id: Ib081ff93889c65ff750e34cad6f9abe07046afdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/1893497
Tested-by: Craig Hesling <hesling@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/bash_completion b/bash_completion
index 28475cd..a8418f0 100644
--- a/bash_completion
+++ b/bash_completion
@@ -9,7 +9,7 @@
 # function assumes that the command supports shflags' --help flag.
 _flags() {
   echo $(command "${COMP_WORDS[0]}" --help 2>&1 \
-    | egrep -o -- --\[^\ \]+: \
+    | egrep -o -- '--[[:alnum:]=_-]+' \
     | sed 's/://; s/--\[no\]\(.\+\)/--\1 --no\1/')
 }