The question “is it OK” is a bit too vague to be answerable. Surely the sky won’t collapse if you do it. But to make things a bit more precise, I would say that if you want your writing to communicate your ideas in the best way to your readership, and if you want it to be taken as seriously as possible by as many people as possible rather than have it tend to be dismissed (consciously or subconsciously) by some people as the product of an immature writer, then no, you should not use the “X/Y” informal writing pattern.
Remember also that the reason scientific writing uses a formal writing style is that the primary purpose of a scientific text is to communicate technical ideas, in as clear a way as possible, to a broad audience that’s usually very diverse and consists of people from many countries, cultural backgrounds, age groups etc, and for many of whom English is not a native tongue. For this reason, using anything in a scientific text that may distract too much from the main technical content or confuse readers who don’t share your particular background is generally frowned upon. That includes things like slang terms, emoticons, graphical symbols with a charged historical and political meaning, pointless anecdotes, and, in my opinion, the “slash” shorthand device.