Pandan that people use for flavoring is Pandan amaryllifolius. Its a sterile plant that has been propagated primarily by suckers. I dont think it produces viable seeds. Its possible that the plant in the image could be in the same genus Pandanus, but there shouldn't be a variegated version of "pandan" as far as I know. A quick search for variegated pandan gave me some of these results below. Results seem to indicate that the version being sold is not edible.
https://www.guide-to-houseplants.com/screw-pine.htmlhttps://www.healthline.com/nutrition/pandanI have a small plant and when crushed, the leaves don't smell too strongly, but for me the scent is a mild cross between coconut and vanilla (without the caramel notes) with a strong grassy overtone. maybe because I keep as an indoor houseplant so it doesn't have the heat needed to develop that strong of a fragrance. I live in a mild cool climate so it can't live outdoors.
If you're looking for anything in the pandanus genus regardless of edibility, then I think that might actually be related. However, since it's probably not edible, for me it might as well be just some kind of a decorative grass.