Creating variables from register variable in ansible

I have the register variable which contains number of lines in stdout_lines. With those lines I have to create variables. Is there any workaround for this.

Ex: register: output

output.stdout_line contains below lines

variable1: value1;

variable2: variable1 + value2;

variable3: variable2 + value3;

.

.

.

.

n number of lines (change based on the output);

I Need to create variables with name variable1 and assign value1 to it and create variable with name variable2 and assign created variable1’s value + value 2 to it and so on upto n number of lines.