How are you going to separate out companies that profit from open source software, from those that don't? Would the fixed percentage be same for a company that is built 100% on open source software as it would for one where a handful of people in one department occasionally use VS Code to write some python scripts?
If you want to fund open source using tax money, then fund open source using tax money. Trying to implement a special Open Source Tax and apply it only to those that "profit from" open source seems both counterproductive and virtually impossible.
So why make a special separate tax that has to be calculated and administered? Just use the tax money you already collect to fund open source projects.