Gap between foundations is a bug entry point?
You can get two pack pouring foam which is the same but on a larger scale and that stuff will fill any gaps regardless of their size, i would be be more concerned about it expanding into your bathroom, Also you may want to extend that down pipe away from your house looks like a lot of water has been running under your foundation, Which may cause you bigger problems in the future than insects in the house.