You asked

What is a good pentax macro lens with more working distance than 50mm?

Here is what the site says about that.

From Pentax smc FA 50mm f/1.4: Pentax smc FA 50mm f/1.4: A prime lens by Pentax for Full frame cameras, 50mm f/1.4.

From Pentax smc DA 50mm f/1.8: Pentax smc DA 50mm f/1.8: A prime lens by Pentax for APS-C cameras, 50mm f/1.8. The cheapest fast portrait lens for Pentax APS-C bodies.

Quoted 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}.