There's no single inventor of school. The concept of formal education evolved gradually over thousands of years. Early forms of schooling existed in ancient civilizations like Egypt, Mesopotamia, and Greece, but these were very different from modern schools. They often served specific religious or societal needs, focusing on the elite rather than mass education.
Therefore, there's no one person or date we can pinpoint as the "invention" of school.