Move dot regex to dimagi-utils