EntityQuery with a condition on an array
try to use an array instead of the value of $paragraph_type.

that would be like this :

-&gt;condition('settings.handler_settings.target_bundles', [$paragraph_type], 'IN')