In the codebase, there are two variables with the same name but with different types (ABC:str and ABC:bool). They both have used extensively in many different files. I want to rename one of them to prevent confusion, but I don't want to do it manually, as they have around 1000+ occurrences.
In vscode, when hovering over a variable, its type is shown. Assuming all the given types are exactly correct, is there a way to employ this functionality or something similar, to search variables with name and also with type? In other words, filtering out ABC variables which don't have the type str from search results.

/if \(ABC ==? [true|false]/gmand then double check that there is no version whereif (ABC)is used to test the string is truthy. You might want to ignore whitespace in the longer version