Parsing Next.js pathname to structured segments, which you can use in various ways.
github.com/z4nr34l/next-router-segments
z4nr34l/next-router-segments