in reply to Word boundary in regexp

Another way, using "modern" regexp verbs:
/$check(?:\S(*COMMIT)(*FAIL))?+|\S+(*SKIP)(*FAIL)/