Convert string literal to vector

Hi I am having a format like this and i want to send all these in form of vector array Please give me some suggestion

format - (1,((X=100,Y=0),(X=500,Y=500),…,(X=1000,Y=950))

I tried like this which doesn’t give any expected output

Like the below mentioned Z value need to be arranged in unreal itself

EDIT : A bracket will be there in last

(1,((X=100,Y=0),(X=500,Y=500),(X=1000,Y=950),(X=1000,Y=950),(X=1000,Y=950),(X=1000,Y=950)))