You could use /[slug] and then do slug.split("-id")
. However you may be better off doing the id alone followed by a fetch for metadata because the name could change and then that url would potentially 404.
CLICK HERE to find out more related problems solutions.