Some people just don’t enjoy front end work, and vice versa
However that doesn't mean I can't do JS/TS and manipulate DOM.
My point is, I've done front-end for most of my career without having to do design work.
These two things are completely tangential. Translating a design into well structured HTML/CSS should not require any UX or design experience. In the same way, you don’t need to know HTML/CSS to create a good design and UX.