change only domain "https://example.com/assets/img/tools/javascript-beautifier.svg" to "https://tools.example.com" in mysql
UPDATE pages SET icon_image = REPLACE(icon_image, 'https://example.com', 'https://tools.example.com') WHERE icon_image LIKE 'https://example.com%';
here you change all the link like
https://example.com/assets/img/nastuh.jpg
https://example.com/assets/img/nastuh.jpg
to