Brackets do two jobs
A group both limits a repetition and names a piece to take out. Forgetting one job gives a pattern that matches but cannot be parsed.
Order of branches
The pipe reaches the widest span unless grouped. Group the alternatives when the choice is part of a longer pattern.