Do not match. Grassroots work experience in two years refers to the rural service or the occupation of institutions and grass-roots party and government organs, and this teacher should not count. If you are a teacher in a regular school, it should count. And you are a part-time job in school, and two years' work experience refers to the work experience after graduation.
You can apply according to the fresh graduates. I graduated last year, and I have been working for almost half a year as a civil servant who applied for the exam according to the fresh graduates of that year. You don't need to have two years of grassroots work experience.