I think the issue is that they tried to separate the input into a list of tokens, like ["5", "nine"], and work from there, which doesn't work on something like "oneight".
https://github.com/xdavidliu/advent-of-code/blob/main/2023/d...
Not elegant but still do the job.