Include dataset column in regex

I have a dataset of valid country phone codes and I want to add them into my regex to prepend random 10 digit phone numbers. Is there a way to do this?

If you use a formula column type. you can reference dataset values with “from_dataset”

from the docs:
from_dataset(“dataset”, “column”, join_criteria)=> Fetches a value from a dataset. For example,from_dataset(“People”, “name”, id: person_id)` returns the value of the “name” column from the “People” dataset where the id column matches the person_id column in the current schema.

link:
https://www.mockaroo.com/help/formulas