If I understand your question, you want strings such as test:growTest:retbecome growTest:ret.
You can use:
sed -i 's/test:(.*$)/\1/'
i means in-place editing.
s / one / two / replaces the occurrences of one with two.
Thus, it replaces "test: (. * $)" With "\ 1". Where \ 1 is the contents of the first group, which corresponds to the regular expression inside curly braces.
"test: (. * $)" "test:", . sed.