How can I reference contents of an array in my regex?

I want to use as delimiters only those colons that preceded by one of the elements of the roles array. How can I express it in regex?