Ultraviolet spectral analysis of JWST planet host targets