I upgraded efcore 2.2 to 5 and simple group by is not working, the data is already in memory, take a look:
List