Is there a way to embed latex into svg files?

If there isn’t, is it still possible with some workaround or not.

You mean that Latex is then rendered as SVG? Idk but Xournal++ has a latex integration and can export as SVG. So maybe that’s what you are looking for?