Why are deleted contacts showing in search results?
I think this is already reported on git lab and has fixed at https://github.com/civicrm/civicrm-core/pull/17798
The fix is available in 5.27.2 version of Civi. Try upgrading Civi to 5.27.2