|replace filter is matching too many characters
Something like this should work:

{{ snippet|replace('/&lt;img([\w\W]+?)&gt;/', '') }}


You can see an explanation of the regex in the right column of https://regex101.com/r/DvJHeY/1