It’s not really possible to give specific advice without knowing which jurisdiction you’re in. In most European countries there are laws that govern employee inventions and grant a share of the profits of an invention to the employee (in Germany e.g. the Mitarbeitererfindungsgesetz). Besides advising you to talk to a lawyer - which people already did here - there’s really little to say without knowing more details. If you can provide at least the country your employer is based in it might allow people to give more specific advice.