Thanks to @Massimo 's idea this morning with ChatGPT I was able to prepare a short script (attached) to extract elements assigned to cost items in a bill of quantities (BoQ)
The output is a .csv file
something similar can be achieved using Spreadsheet Import/Export but not, I think, with a single "Quantity" value and "Unit", the same table can be further used as "Measurement Sheet" along with the BoQ to list the elements summarized in the document.
Any feedback is much appreciated
Thanks