An ordinary identifier is composed of a leading alphabetic character which may be followed by one or more alphanumeric characters. It may also contain isolated, embedded apostrophes ' and/or hyphens -, provided that the next character is each time alphabetic.
https://docs.raku.org/language/syntax#Ordinary_identifiers
This means that '2-5-7' is NOT an identifier but the numerical value -10.