Just so you know, that does not restore iOS 18. When the beta version was being used, you could remove the beta to return back to the latest shipping release, but now the latest shipping released is iOS 26, and you cannot remove it.
What laptop are you using?
I would suggest to put your device in Recovery Mode and try the Update option first, then the Restore if not successful. It will take about 15 minutes for the OS to be downloaded to your device, so be patient. Follow the steps closely as the key presses must be done correctly. There is also the option on the bottom of the screen for service if the device is stuck in Activation Lock.
If you can't update or restore your iPhone or iPod touch - Apple Support