Registering a company while on student visa
or should I do this as a foreigner? ( I have SSN)
Because you are not a citizen, nor a permanent resident, you are still restricted from opening an S-Corporation. However, you are free to form an LLC or start a C-Corporation. Your immigration status does not come into play at all when you start one of those companies. I would recommend that you look into forming an LLC in Florida.