Dorico produces this result by default:
Is this intended? I don’t pretend to understand all the subtleties of slur positioning and I appreciate this is a difficult case, but not a rare one. But to my amateur eye, the slur would look better if it was rotated so that the left end connected more closely with the stem and the right end was further from the notehead.
Adjusting settings in Engraving Options > Slurs > Avoiding Collisions doesn’t seem to make a difference.