fixed regex for matching previously tagged objects
[CB-2913] escaped replace string so no characters are interpreted as sed flags or regex