Slice the spaghetti squash in half crosswise and use a spoon to remove the seeds and pulp.
Insert the stainless steel rack (trivet) into the Instant Pot and pour in 1 cup of water.
Place the squash halves onto the trivet, secure the lid, and set the steam release valve to the Sealing position.
Select Manual/Pressure Cook on High for 7 minutes.
Once the timer expires, perform a Quick Pressure Release (QPR) by moving the valve to the Venting position.
Carefully remove the squash, use a fork to scrape the flesh into long strands, and set aside in a bowl; discard the water from the pot.
Select the Sauté function on the Instant Pot and add the olive oil.
Add the ground beef and onion to the pot, cooking until the beef is fully browned and the onion is translucent.
Stir in the minced garlic, oregano, salt, and pepper, cooking for 60 seconds until fragrant.
Pour the marinara sauce into the beef mixture, stir well, and allow to simmer for 5 minutes before serving over the prepared squash strands.