Replace a specific sublist

Is there a node to replace a sublist at a specific position? I want to replace the last sublist of a list with another list. The first time (with the orange and blue group) it has worked with List.ReplaceAtIndex, but I think the second time with the green List, it doesn’t work because the list is not regular. What can I do to replace a very specific sublist (the last) with another list?

capture2.dyn (53.9 KB)

I saw this post. Maybe it’ll be useful for you?