 class="s2">&quot;segmentation_sq&quot;</span><span class="p">]</span>
    <span class="k">if</span> <span class="ow">not</span> <span class="n">segment_sq_brackets</span><span class="p">:</span>
        <span class="n">regex</span> <span class="o">=</span> <span class="n">_RE_PATTERNS</span><span class="p">[</span><span class="s2">&quot;segmentation&quot;</span><span class="p">]</span>
    <span class="k">return</span> <span class="n">regex</span><span class="o">.</span><span class="n">findall</span><span 