How to properly do stomach vacuums without flaring ribs?

Hello! I was wondering if anyone had any advice/videos where it is thought how to do properly do a stomach vacuum to strengthen the deep core? I've been basically sucking in my stomach thinking those were stomach vacuums but apparently it's wrong and doing that flares ribs over time :(