Hi @gennarodp :
I noticed that each line is separated by 3 lines. I don't know if this is a format problem when inputting.

I assume that the real format of this string is:
Part number: AAA000
Description: Test1
Qty: 10
Part number: BBB000
Description: Test2
Qty: 5
Part number: CCC000
Description: Test3
Qty: 12
If so, please try this flow:
1\My entire flow

Step1:create three variables

Step2:Do until

Reference Expression:
1\ div(length(Split(uriComponentToString(replace(uriComponent(variables('TheString')), '%0A', '/n')), '/n')), 3)
2\ Split(Split(uriComponentToString(replace(uriComponent(variables('TheString')), '%0A', '/n')),'/n')[sub(mul(variables('count1'),3),3)],':')[1]
The Result

In addition,There is also a relatively simpler way to split a string by line.
The point is to create A string whose value is a carriage return.

note:Enter a carriage return in the place I marked
Then-Do until

Reference Expression:
1\
div(length(split(variables('TheString'),variables('blank'))), 3)
2\
Split(split(variables('TheString'),variables('blank'))[sub(mul(variables('count1'),3),3)],':')[1]
Best Regards,
Bof