)]](?!\s*\w+[\s[|&<>)]])
    )+
    # don't check substrings and substitutions
    (:~?[^!]*)? !
  )
)