[Feature] Detect usage of $_ in foreach loops

Fixes: #12058
Release: 0.0.7