This is a work-around that works for simple shapes, and my test was specifically with a pentagon as implied with the question data.
There is an extension for Inkscape known as "Inkscape to OpenSCAD" which takes the design created in the edit window and converts it to multiple paths (if more than one shape) in OpenSCAD format. There are earlier and later versions of the same code on Thingiverse, but version 7 changed in some way to make it unsuitable to me, but I can't recall why.
The test I created for this answer resulted in a six point array with an arbitrary 1 mm extrusion figure, which can be ignored for your objective.
A randomly placed pentagon resulted in a small file, the primary line containing:
path3409_0_points =
[[34.404944,55.348279],[-37.074095,53.945019],[-57.827755,-14.469214],[0.824817,-55.348279],[57.827755,-12.198694],[34.404944,55.348279]];
If care had been taken with the placement and size of the pentagon, one can expect numbers resembling integers rather than this scattered array, but the results are consistent with the objective.
The removal of the duplicated last element of the array did not change the appearance of the extruded polygon.
