Add function to convert complex number to regex