These days there’s often a tiny neural net inside good hearing aids which decides which frequencies to amplify by how much. That way they can dynamically detect and remove background noise and isolate actual speech. Among many other features.
like, a band pass filter?
Do you have any example devices?