That looks pretty good. What you want though is probably this:
^\d{14}$
The "^" matches the start of the field, and the "$" matches the end of the field.
Yours (\d{14}) said to match anything that includes a 14 digit number. Mine would say to match only things that include exactly 14 digits and nothing else.
Note you will need to actually use the snippet to see this in action. The validation warning will only come up when you try to insert a form snippet. It won't show in the preview or the community. You will need to insert the snippet to have the validation trigger.
I didn't realize that the validation only kicked in when inserting the snippet.
It's nice to have the indicator prior to inserting the snippet like in the if statements. Any chance of achieving the same behaviour in a future update?