A question regarding soundfonts from consoles

Is it OK to use soundfonts from other games in my project?
I'm asking this because yesterday I started questioning if it was actually legal, because they're from other games so they must have copyright, but many indie games like Undertale use a lot of these, and nothing bad happened (and Sans got in SSBU lol).
My game is going to be non-commercial but I'm still worried about it. The bad part is, I've already made a lot of songs using these, I'll be attatching examples.
If it's completely forbidden, could someone mention some alternatives that are more legal?
any resource, no matter which one, can only be used if you have a licence that allows you to use and redistribute it.

in the case of the RPG-Makers and their RTP as well as the Degica Shop products, you get that licence as part of the EULA when you purchase them.

if the files are ripped from other games, that usually means you have no licence and any such use is illegal.

EDIT:
and no, being non-commercial does not give you any rights at all. the only difference between commercial and non-commercial distribution when using ripped resources is the amount of money you'll be sued for: it will be much higher for commercial distribution, but you can still be sued even for non-commercial distribution.
any resource, no matter which one, can only be used if you have a licence that allows you to use and redistribute it.

in the case of the RPG-Makers and their RTP as well as the Degica Shop products, you get that licence as part of the EULA when you purchase them.

if the files are ripped from other games, that usually means you have no licence and any such use is illegal.

EDIT:
and no, being non-commercial does not give you any rights at all. the only difference between commercial and non-commercial distribution when using ripped resources is the amount of money you'll be sued for: it will be much higher for commercial distribution, but you can still be sued even for non-commercial distribution.
Thank you for answering, I'll be keeping that on mind.
I'll look for a legal soundfont to remake the songs (they weren't that good anyway).

Original thread: https://forums.rpgmakerweb.com/threads/a-question-regarding-soundfonts-from-consoles.135012/