The closest I could get with my limited RegExp knowledge:
Match: %1 - %2-%3-%4-%5 %6 e.g. Prompt used - yacht rock band 0fc4134d-c8f5-4b33-8cd7-cac680e5f8c4 gigapixel.jpg
Replace: %1 %2 e.g. Prompt used - yacht rock band 0fc4134d.jpg

Sample List
Prompt used - radio chasis 77cb2221-48be-4944-b8c0-ae047ddfe47f gigapixel.jpg
Prompt used - volume control grip set to 11 f7d03837-9411-4ab2-8f8b-bbb0332ddf07 gigapixel.jpg
Prompt used - abstract composition in the style of suprematism.jpg
Prompt used - spin painting 12b54ae8-95da-4d79-a0bb-241d3c562ac1 gigapixel.jpg
Prompt used - radio chasis 81f014bd-3b8b-4bf5-890b-6a1bb4d2cd4e gigapixel.jpg
Prompt used - fly compound eye scanning electron microscope photograph.jpg
Prompt used - abstract composition in the style of constructivism.jpg
Prompt used - volume control set to 11 4aa4b609-20c7-490e-925d-683b53e33f39 gigapixel.jpg
Prompt used - example of a digital collage.jpg