I'm pretty sure this is the same bug I reported here: https://github.com/drolbr/Overpass-API/issues/192
The fix has only been committed 4 days ago, so it might take a bit of time until the fix it is available on one of the public Overpass instances.
For the time being please use the difference block statement:
(
node(51.710002,10.520173,51.710210,10.520822)
[~"^recycling:."~"."];
-
node(51.710002,10.520173,51.710210,10.520822)
["recycling_type"~"container"];
);
out body;
Obligatory overpass turbo link: http://overpass-turbo.eu/s/fec