Making sure we won't allocate too much capture groups