There is machine learning to remove stars called starnet, though last I checked it doesn't to an great job with diffraction that severe. Starnet is used by astrophotographers to enhance the contrast of nebula without getting artifacts from stars or to make completely starless nebula images.
If someone got starnet to remove the stars in the JWT images it wouldn't then be hard to go overlay stars back in without the diffraction.