Recognizer for regex structures.
(regex-p x) → *
Theorem: consp-when-regex-p
(defthm consp-when-regex-p (implies (regex-p x) (consp x)) :rule-classes :compound-recognizer)