Google lists their guidelines for this here and state
If your site has a favicon, it can be included in Google Search
results for your site
Your code looks compliant with their guidelines. The only thing I can't see is the size of your icon which must be a multiple of 48px square, for example: 48x48px, 96x96px, 144x144px and so on.
However, they also ...