You need a little bit of modification to your expression to get it to work:
^(?:\||(?:\{(?:7f05059e-4b4c-4d4d-bb39-1f57446719ef|57cb8e77-30cb-4dba-88bb-104cfea2e94f|c41ac6b6-a5c9-47f9-86c2-7db9e861e701|97133d89-36a1-4c28-9f30-4516eb469520)\}))*$
I have added the anchors ^
and $
to match the start-of-line and end-of-line respectively.
I have also added the *
to entire grouping to support one or more of your GUIDs on the same line.