title: re get text between braces
body: <p><strong>Data</strong></p>
  <pre><code>module All
  {
  
      obj Bucket
      {
          Damage = 900
          Type = Weapon
          Cooldown = 2
          Craftable = false
      }
  }
  </code></pre>
  <p><strong>Output</strong></p>
  <pre><code>&quot;Bucket&quot;: {
      Damage: 900
      Type: Weapon
      Cooldown: 2
      Craftable: false
  }
  </code></pre>
  <p><strong>Current Code</strong></p>
  <pre><code>def get_object(x):
      pattern = r'\{+(.*?)\}'
      
      return re.findall(pattern, x, re.MULTILINE) # returns []
  </code></pre>
  <p>I want to get the data between the { }, this code works for eg. &quot;{ text }&quot; but not for this string, maybe it's because of the newlines, I don't know much regex so any help is appreciated!</p>