Parser combinators are very slow in languages without a sufficiently optimising compiler, I wouldn't recommend them here.
In Gleam pattern matching and the "splitter" package is the go-to for text parsing.