Here, I am sharing a flow setup that can be used to export tasks related data from a planner plan to Excel. This includes data like the categories applied to a task, notes on the task, completion percentage, assignments etc.
This flow basically gets you all the data from planner. You can setup separate flows to clean up the excel before a new import from planner to make the system more self maintained.