Google’s John Mueller said putting the category name or topic name in your URL slug has zero impact on your rankings. I am not 100% sure if he really meant ZERO but he used a GIF that says ZERO.
Here is the set of tweets on Twitter so you can see it yourself:
— 🧀 John 🧀 (@JohnMu) December 9, 2021
The question here was “How important it is to have a Category/Topic in the URL slug?” Just said ZERO.
Forum discussion at Twitter.