The file paths from the search results are desired to be placed in reverse order at the end of the files

As shown in the figure, place the path after the file.
Then reverse the path.
The result is:
Prioritize displaying the file, followed by its parent folder, then the parent folder above that, and so on until the top-level folder