Maggots eating Strawberry Leaves
I'm guessing that these maggots as you call them must be caterpillars. There are a few species of moth larvae that happily feed on strawberry leaves, and if you don't have too many plants then the best way to deal with them is to remove by hand and destroy them. Alternatively you can apply nematodes (follow this ink https://www.harrodhorticultural.com/nemasys-caterpillar-killer-pid7832.html ). If eating fruit after applying then just make sure you wash it well. Follow directions on the packet and you can't go wrong.
Many thanks for your query, and good luck.
Pest Control Expert
Ok the picture helps and I can see they are Sawfly larvae (most probably Rose Sawfly looking at colour and shape).
You can still use what I recommended (nematodes) but if not too many plants I suggest picking them off.