E0143 Invalid route segment
Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.
Why
A route segment is a fixed name, a parameter [name], or a rest parameter [...name] as the last segment. Parameter names are letters, digits and _, each used once, and cannot be path or query, which every route() value already has.
How to fix it
Rename the file or folder, such as pages/post/[id].duo or pages/docs/[...rest].duo.
In a terminal
duolith explain E0143