How to Brainstorm Business Ideas

I have seen in posts where you (Jeremy) get asked if you had to do it all over again, what would you do? And you gave the response I would start a company and sell, do it all over again. As someone that is learning software engineering and is interested in starting a company, what process did you use to come up with a business idea? How might others also generate ideas for a business? I appreciate it Jeremy and others! Sure love all the wonderful content!