next-routes is good, but it was unmaintained for a long time, with issues and PRs (27 at the time of writing!) piling up. A new maintainer was just added [1] who seems more active, so hopefully things will improve.
[1] https://github.com/fridays/next-routes/issues/244#issuecomme...