According to https://regex101.com/r/NLSymf/3, the following regex:
\\[\\[(foo)([^\\]]+)\\]\\]
(full) matches the string [[foo>test1|
[[foo>test1|