O valor do input está retornando como undefined e por isso não está entrando na condicional pra fazer a filtragem.
Porém eu não sei o motivo do this.value não estar retornando nenhum valor.
<h2>My pacients</h2>
<label for="table-filter">Filter</label>
<input type="text" name="filter" id="table-filter" placeholder=" Type the patient name">
<table>
var filter = document.querySelector("#table-filter")
filter.addEventListener("input", function(){
var patients = document.querySelectorAll(".paciente");
patients.forEach(function(patient){
var tdName = patient.querySelector(".info-nome");
var name = tdName.textContent;
console.log(this.value);
})
})