How to model this smooth edge?

How do i model this smooth edge in blender?, I have tried bevel and subdivision surface but didn’t work as I though

Start with a plane, add a sub-d modifier and add points/ move them arround until satisfied:

Use points close together around the edges you want to be sharp:

Then extrude the whole thing and add some proximity loops:

smooth_edge.blend (112.3 KB)