The bug
The advancement trigger changed_dimension
does not trigger when exiting the end via the portal.
How to reproduce
Download the attached advancement
and place it in the following directory of your world folder
data\advancements\custom
Open the world
Leave the end using the end portal
I changed the report a bit, I hope you are fine with that.