Disallow URLs from crawling with a patern

I have a website with like 100K URLs I want to disallow crawling for all URL that has an ID with this pattern www.site.com/node/sport/category/id but not all that have www.site.com/node/sport/category/ without the ID.

how can I approach this rule on robots.txt?

thanks all