From my experience a few years ago (as far as I remember, SonarQube 6 or 7 at that time) this was possible without any issues. Even the configuration in our Azure DevOps Server contined to work without any hassle.
We are using Developer Edition, for Enterprise you have to do some additional configuration.
In the past there always was a matching version between Open source and commercial edition.
But now, those editions have a completely different and independent release cadence. There are no matching versions anymore!
Can anyone from SonarSource outline a potential migration strategy?
We have some high level documentation here, which outlines that the most important that you move to a version which was released after installed one. I agree it still lacks some clarity, we should improve that.
In your case you can go from 25.1.0.x to 2025.1, but not from 25.2.0.x or 25.3.0.x.
If you are running 25.2.0.x (Feb) or 25.3.0.x (March) you need to wait for the release of SonarQube Server 2025.2 (in one week).