my input dataset is like
test = data.frame(Var_a = c("A|B","C|D|E","F"),Var_b = c("X"))
my desired output dataset is li