Ok I was able to solve that. The proper expression looks like that:
@{concat(split(pipeline().parameters.folderPath,'/')[1],'/',split(pipeline().parameters.folderPath,'/')[2],'/',split(pipeline().parameters.folderPath,'/')[3],'/',split(pipeline().parameters.folderPath,'/')[4],'/',split(pipeline().parameters.folderPath,'/')[5])}
However this solution will works only in case when I have 5 subfolders in container. If I would have less or more subfolders, then this function will return an error.
Operation on target Data flow2 failed: The expression 'concat(split(pipeline().parameters.folderPath,'/')[1],'/',split(pipeline().parameters.folderPath,'/')[2],'/',split(pipeline().parameters.folderPath,'/')[3],'/',split(pipeline().parameters.folderPath,'/')[4],'/',split(pipeline().parameters.folderPath,'/')[5])' cannot be evaluated because array index '4' is outside bounds (0, 3) of array.
So is there a way to write f.eg. for loop or somethig similar, which will read array until it ends? So like split(pipeline().parameters.folderPath,'/')[n]