As mentioned in the title, the python interpreter (for example the sys.modules) don't reset between play/exists of the game inside the editor, but only when the editor restarts.
I also opened a stackoverflow quetsion providing more details:
https://stackoverflow.com/questions/79477995/unity-pythonnet-interpreter-preserves-state-between-plays-and-only-resets-wh
Did this happen to you?