When VSCode highlights a desired search term, it does not actually select it - it is highlighted in a different colour to denote this.
You can press CTRL+D to 'properly' highlight the word you've searched for, which will then allow you to copy it.