Editor stuck when entering play mode

This problem used to happen once in a while, I’d just restart the edit and it sometimes worked again, but now, it’s happening every time.

Whenever I click on play I get stuck on a message that says:

Application.EnterPlayMode
Waiting for Unity’s code to finish executing

What’s happening? are there any background tasks I should be aware of? I’ve even tried on empty scenes and always the same error

Start with the various pinned posts at the top of this forum as well as the top of the Scripting forum.