Expose scan_pattern through tokenize