Going back to stable, released version depend on which insider build you have installed.
A) If You have preview build 28020.xxx or 29xxx then you have to do clean install of released version 25H2.
B) If You have preview build 26220.xxxx or 26300.xxx then you can go to released version without clean install.
1). Download ISO for released version 25H2 https://www.microsoft.com/en-us/software-download/windows11?msockid=13c4190001016d9f341a0d8c008e6cab
2). Delete WindowsSelfHost key from registry to get device out of insider program
Open regedit Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost Right click it and select delete. Restart.
3). Mount downloaded ISO (right click and select mount).
4). On mounted image run setup.exe to start in-place update to go to public version 25H2
In any case take backup all files you want to keep.