Nothing to worry about if you’re sensible. My ex had been a farm worker, was unusually tuned in to the characteristics and behaviours of farm animals (which many sadly aren’t), and I learned a lot from him when we were out and about in the countryside.
Cattle are prey animals but defend themselves against perceived threats to themselves or their calves. The vast majority of attacks are when people have a dog (predator) with them, or on farmers. Cattle are inquisitive. They really aren’t likely to attack humans. They do like to sniff and lick us though, especially in summer when we have lovely salty sweat!
If you walk through a field with cattle, just walk, don’t approach them and don’t stare at them. If they have calves especially, keep to the path, don’t stop and don’t look at them. As with many animal species, staring is received as an act of aggression. Especially by bulls. Use your peripheral vision only. They do watch our body language and if you just go about your business, looking neither scared nor aggressive, they know they have nothing to fear. When there’s a public footpath through their field, they understand that that’s where the humans walk and they ignore you if you stay on it, but become alert if you leave the path and move towards them. I always look briefly in their direction and say “hi cows, it’s only me” 😁 They understand that I’ve seen them, they’ve seen me and I’m not stalking them.
I’ve been followed across fields by groups of inquisitive cattle, usually young bullocks - it’s just a little game for them, something to do. If you’re worried because they’re getting too close, wave your arms, and shoo them away. They’ll run off. But they might come back!