microsoft to do – How can I export MSTodo Lists to CSV

I use MS Todo for task tracking etc, it would be helpful if i could then export the completed tasks to CSV so I can further work out where im spending my time.

Is there away I could export my tasks including categories to a CSV file, either directly or indirectly possibly via power automate, etc.

Currently I can only get a printable version which is difficult to use for analysis.