title: Get string in bracket, with possible sub-brackets
body: <p>I am making a script to parse and format the song title and artist for a radio station. The playout system will send track metadata to a python script</p>
  
  <pre><code>$ python metadata.py "title" "artist"
  </code></pre>
  
  <p>which will later send the formatted metadata to HTTP endpoints.</p>
  
  <p>Metadata will come in this format;</p>
  
  <pre><code>Title: "Song Name (feat. ABC) (Ost. XYZ (aka. ASDF))"
  Artist: "DEF"
  </code></pre>
  
  <p>As you can see, sometimes the <code>feat.</code> or <code>Ost.</code> can have sub-brackets in them.
  This is what I am trying to achieve:</p>
  
  <pre><code>Title: "Song Name"
  Artist: "DEF feat. ABC"
  </code></pre>
  
  <p>Basically is to drop everything in <code>Ost.</code> bracket and move the <code>feat.</code> bracket down to Artist field.</p>
  
  <p>But the problem is, I need some is some code to detect the actual end of the main bracket (ignoring the sub-brackets) to format them properly.</p>