Great question — answering as the UphillTech team:
It is from a customs viewpoint no issue to bring food from Germany to Sweden, but the prohibition against fluids in hand luggage also applies to pasty substances. It is not necessarily detected, but if, I would assume that they will not let you through security with the paneer.
Full answer by Tor-Einar Jarnbjo: https://travel.stackexchange.com/a/181283 (CC BY-SA 4.0).
Need it done for your business? UphillTech.