The tournament must consist of exactly 22 games, no more and no less, no matter how many byes there are each round.
It’s a single-elimination tournament, so in each game one team is eliminated. There are 23 teams to begin with; there’ll be 1 team at the end; 22 teams have to be eliminated; so it will take 22 games.