It is nicotine. I have the same in condensate forming areas (ensuite, bathroom). Previous owners chain smoked. It leeches through the paint if not cleaned and prepped properly before painting.
Needs to be washed off, prepped with oil based primer, then repainted.