@david55 already answered this, exact matches trump wildcard entries.
@lgaetz has done multiple writeups on dynamic routes, which I think would serve you well here