search: preserve annotation data when substituting context
Created by: rvantonder
Fixes https://github.com/sourcegraph/sourcegraph/issues/29897
Since this is a fix for an experimental feature, that would have been caught by integration tests were it not experimental, and since there is no existing test for this substitution function, I am punting.