Add term regex to PB, compile it

This compiles the regular expression in the vnode and assumes it's
correct. I need to add compilation in the FSM for validation only, so we
avoid sending incorrect REs to each node.