Is there a callback for when a scene gets unloaded in the Editor?

Hello guys!

I’d like to run some code when a scene gets unloaded in the editor.
Like if I load a new scene by double clicking on a scene asset, I’d like to run some code that modifies the scene (assigns few references automatically) just before the scene gets unloaded - before allowing unity to do its thing and go ahead.

Is there anything like that? Thankss

maybe this one? SceneManager.sceneUnloaded