You asked

Which macro lens works on a nikon d7500?

The Nikon D7500 takes the Nikon F mount, and this site lists several macro lenses that fit it. For close-up work, the best fit is the Laowa 25mm f/2.8 2.5-5X Ultra Macro. On the D7500 it frames like 38mm on full frame, and it is built for magnifications of 2.5 to 5 times, so it is the most serious option here for small subjects like insects or flower detail.

If you want something more flexible, look at these:

The Laowa lenses trade flexibility for magnification, while the Sigma gives you a normal range and only modest close-up magnification. The site's pages don't quote prices for these lenses here, so check each lens page for current figures. Crop-sensor framing also means a macro lens reaches a tighter view than it would on full frame, which helps when you want to fill the frame with a small subject.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.