There might be a better funciton, but this also works:
Lua Code:
local substring = string.gsub("|TInterface\\OptionsFrame\\UI-OptionsFrame-NewFeatureIcon:0:0:0:-1|t Colorblind and Move Pad options have been moved to the Accessibility section.", "|T.*|t", "")
print(substring)