My range hood is magnetic and has about 4 of these stuck on the side
https://www.amazon.com/VOCOO-Digital-Kitchen-Timer-Adjustable/dp/B09W2B267P?th=1&psc=1
They're not perfect, because I do sometimes space out through their beeping, but they help keep me on task when I remember to set them
Additionally, as someone else mentioned, my induction stove will shut off if it gets too hot.
If you still struggle, maybe an air fryer is right for you, they typically have timed modes.
Someone else mentioned the dorm room system you have to keep pressing a button to trigger - you could pretty easily recreate this with a countertop induction cooktop, pressure cooker, or air fryer. Just plug into a smart switch, and use Home Assistant + a button, and have it auto shutoff after X time since last button press.