@Amigo-Barrio as Ekopalypse already stated you need to look for some kind of pattern to identify what has to be removed. In your case you have a fixed URL followed by some arbitrary digits followed by the name of a .jpg image. You may achieve the replacement using a Regular Expression (regex for short). The following will pick the entire URL, extract the fixed part and the .jpg name and re-join them omitting the digits:
Search for: (https://dev.umb-schiffsmodelle.com/wp-content/uploads/2022/10/)\d+/(.+.jpg)
Replace with: $1$2
To fine-tune the regex you may want to have a look at this FAQ.