Fix end match regex for import statements.