Matt where is that picture taken above?
If it is a shared use facility ie cyclists on there as well then the fence is a big no no. In my former career of 20 years I was a road accident investigator and road safety auditor, and would regularly carry out audit’s on proposed and completed highway infrastructure schemes in accordance with the Design Manual for Roads and Bridges (basically the UK roads design bible). In fact I carried out over 300 all over the UK, a lot of which were pedestrian and cycle schemes.
There is no way that should have got through to construction and in my experience the spiky fence would have been designed out at a pre construction audit. Had it actually made it to construction it would not have passed a post construction audit and should require modification or replacement.
I would suggest you contact the relevant local authority and take it further with their road safety team if they have one, and specifically the safety auditors. If it hasn’t been audited then they need to explain why.
If I remember correctly you are aberfeldy area? Not 100% sure as it’s been a while but I think your LA would be Perth & Kinross. I would also raise it with the Community Council.