1.21 Datapack "function" error

When creating a basic datapack the error Data-pack Language Server couldn't figure out which category this file belongs to. Please double check the path of this file. gets thrown. This is because of the fuctions => function change

Continue to help post