This is extremely field-dependent. It will also depend on whether you want to mostly teach, do research under a professor, or lead a research team in academia.
In engineering, industry experience can be extremely valuable. People who have worked in basically any engineering position in industry for decades can get teaching-focused jobs without much difficulty. People who have done R&D work in industry can get research-focused jobs, especially in a hot field, and especially if they are continuing to publish while in industry. People who have worked in industry are seen as extremely qualified to do research in a technician or research scientist position under a professor, but are rare in academia because they are almost always too expensive for a faculty member to be able to afford to pay them on grants.
In biology, industry experience is not viewed as valuable in the same way. Once you leave the path of undergrad -> tech/lab manager (optional) -> grad student -> postdoc -> PI, it's very hard to get back on that track. Even if you are still in academia -- for example, taking a research scientist position after a postdoc instead of moving up to PI -- it is really hard to get back on the road to becoming a PI. I know a few biologists who have chosen "alt-ac" careers in which they still sometimes interact with academics, and one of them recently shared that they don't feel that they are respected as a scientist anymore. I do not know of anyone who got a PhD, worked in industry, and then returned to a research scientist or technician position, but this would almost certainly be easier than trying to get a job as a PI. The question is just whether your experience would make you more or less desirable to a PI in comparison with a graduating PhD student or super-postdoc who has not spent any time in industry. I'm not sure of the answer to that but I think it would depend a lot on the specific work you were doing in industry and whether it produced publishable research.
Those are the two fields I have the most familiarity with. From the little exposure I've had to philosophy, they seem to operate similarly to biology in that there is a defined track and if you deviate from it, it's very difficult to get back on. I can't venture a guess about any other field, though.
You should reach out to people in your field to get a sense of whether people successfully do this and how they are perceived.