I think the three easiest factors in a "pleasing" image are spherical abberation, apodization, and field curvature. Spherical abberation is what makes a soft-focus lens soft, and a slight amount of spherical abberation is responsible for the famous "Leica glow". People generally find at least a small amount of this abberation to be pleasing.
"Bokeh" is the rendering of the out-of-focus areas of an image, and it's the combination of a number of optical factors. Highlights in the bokeh area will take on the shape of the aperture. Crudely, if you cut a dick shaped hole in a piece of paper, then tape it over your lens, you will have dick-shaped highlights. Apodization basically is the idea that if instead of a hard aperture, you use a neutral-density filter that gets darker at the edges, then your bokeh won't have hard edges, it'll have a gradient. STF lenses use a separate aperture with one of these gradient filters to alter the edges of the bokeh so it's smooth. Other abberations also manifest in the bokeh - uncorrected sagittal field curvature will result in the "swirlies" of a Petzval lens, and spherical abberation likely helps smooth out the bokeh a bit as well.
if your software gives you metrics for these optical abberations... that would be a good place to start.
tbh someone else mentioned Lytro and this is something they would have been good at. Take an "accurate" lightfield image and you could reproject it as if it had come through a different (not accurate) lens. From what I know the resolution on Lytros was never that great, but maybe you could do something similar with a custom Reshade filter in video games, change the rendering characteristics of a game in accordance with the optical characteristics of some lens. Perhaps raytracing might be useful to model the exact optical behavior of the rays inside the lens in realtime...
(what software are you using btw? anything available for free / at a semi reasonable cost? I've always thought it would be interesting to try single-point-turning custom elements and building my own custom lenses... completely absurd idea but neat to think about.)