A family of Microsoft word processing software products for creating web, email, and print documents.
Don't use the Search Pane in the Sidebar, use Edit> Find> Advanced Find & Replace instead.
Once you enter the criteria Do Not click the Find or the Find Next button. If you do, it takes the focus away from the selected passage. If you go directly to the Replace All button only the selected content will be changed -- Just make sure to click No when asked if you want to "...search the remainder of the document".
Use Help> Send Feedback to let MS know how you feel about it :-)