How to import old version of .ovpn file?

The file begins with:

dev tun
persist-tun

and it throws me errors like:

The key file contains the line “dev tun” which is not a key-value pair, a group, or a comment.

I use GNOME but similar error is shown when using nmcli.