Extract substring between a : and a string of a predefined set of strings I have the following input as a a column of a df, each row is one string: