this is not really a blender problem but more a python problem:
you can evaluate a string using the eval() function, however evaluating “vector((1.0,1.0,1.0))” would probably rease an error because this is not correct coding.
this should work:
string = "[1.0,1.0,1.0]"
vector = eval(string)
if you are for some reason stuck with the string “vector((1.0,1.0,1.0))”, you should modify the string first: