How can I modify the global product list?

In the backend, when a product is listed, the product category list can have parent categories like the screenshot example. But on the front end of the website, it is a straight list, which looks really confusing. Is there a way to show the parent categories on the front end?