If I understand correctly you are retrieving tasks based on a filter. However, the issue is that each of those tasks sends an individual e-mail in your flow setup, instead of one email for all tasks at once?
Can you share a screenshot of your setup?
Based on your description I assume the Send an Email (v2) action is within an apply to each loop. My suggestion would be to move it outside the loop and collect all results for example in an array variable and use that array variable in the email action.
When you share a screenshot with your current setup I can create an example which is adjusted to your setup.