Regular LLMs are quite bad at it (see simonwillison's blog post). However this paper [0] describes an apparently sound approach using Neural Radiance Fields (NeRFs), however their github repo [1] has been "code coming soon!" for months now, so you can't really use it.
It's been released as of an hour ago!!! https://github.com/SagiPolaczek/NeuralSVG/pull/6
Oh boy oh boy oh boy