I ran into the same issue (using chocolatey to do the uninstall) and ended up with this solution. (Don't forget to change the $version variable to match the version you want to remove)
$version = '2.2.6'
$softwareName = '.Net Core'
$searchString = "*$softwareName*$version*"
$msiExecPath = Join-Path -Path $env:SystemRoot -ChildPath 'system32' | Join-Path -...