title: Regex match word boundary string with parentheses
body: <p>I am trying to create a regex that checks if tag is inside the text, but there are couple tags (from multiple thousands, don't ask me why, SEO expert told my client its good) which end with parentheses.</p>
  
  <p>The regex works great for normal tags, but plain fails on parentheses, as the match has to be exact, so I am forced to use word boundary. Is there a way to allow this?</p>
  
  <p>Here is original regex I used:</p>
  
  <p><a href="https://regex101.com/r/wN9jO8/1" rel="nofollow">https://regex101.com/r/wN9jO8/1</a></p>
  
  <p>This is what I tried (yes, I am not good with regexes, but I tried googling and cold not find anything really useful):</p>
  
  <p><a href="https://regex101.com/r/wN9jO8/2" rel="nofollow">https://regex101.com/r/wN9jO8/2</a></p>
  
  <p>I also tried modifying word boundary, but it did not work correctly (always matched one letter of string in front and after the tag).</p>
  
  <p>Basically, for the tag <code>text (jadad)</code>:</p>
  
  <pre><code>lipsum is a dummy text (jadad) alsdasldk. // match
  lipsum is a dummy text (jadad). // match
  lipsum is a dummy text (jadad) // match
  lipsum is a dummy (text (jadad)) // match
  
  lipsum is a dummy text (jadad // should not match
  lipsum is a dummy text jadad) // should not match
  lipsum is a dummy text (jadad)asd // should not match
  </code></pre>
  
  <p>The main problem is, it has to work perfectly fine for tags with parenthesis and without them, ideally easily editable to support more weird characters in tags ([ or > or tag ending with . or ? or !).</p>
  
  <p>I am really lost right now. If you need any more info, just comment and I will try to add it in.</p>
  
  <p>Thanks for help.</p>