Your surgeon is unfortunately spouting nonsense. This is like saying that it's not a good idea to have surgery (which I doubt your surgeon would say). It's certainly true that taking Flagyl for an extended period carries some risks, and you're better off if you don't need it. If it's what enables you to live a full, active life, though, then it's completely appropriate until/unless side effects make it a problem.
This is one of the reasons most folks are (IMO) probably better off switching their care (after the post-op period) from their surgeon to to a *knowledgable* gastroenterologist.