use regex to parse macro import for providing function completion