Assuming the entire text is one line, something like the following will extract the three groups: path and the two versions:
Path *: *(.*) Version xyz *: *(.*) Version abc *: *(.*)
The version xyz would be \2 etc. Some variations would exist between regex implementations.