I would simply insert (?:[^\n]*\n){2} after the \A.
qr/(?x: \A (?:[^\n]*\n){2} (?: [^|]* \| \s* activate[ ]complete \s* \| [^\n]* \n? )* \z )/ms;
For the finicky, [^|] could be changed to [^|\n]
In reply to Re^4: Multi-line string regex and negative inline match
by ikegami
in thread Multi-line string regex and negative inline match
by josh803316
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |