Hi Rohit,
I have gone through your OML.
I would suggest you to remove the enclosing columns in the header Row of Data Table.

Also, You can remove the RichWidgets\List_SortColumn from the header Row.

After doing this you would get the appropriate pivot table as you wanted. See the below Screenshot.

I hope this will helps you. Happy Low-coding :-)
Best Regards,
Rasika