How to reference a ScriptableObject in a non monobehaviour script?

I have a script that does not derive from monobehaviour, therefore i cannot attach it to a gameobject and select a scriptableobject to pass onto the script in the unity editor. How would i go about accessing the data in the scriptableobject in this non monobehaviour script?

nvm i got it

ScriptableObject SO = Resources.Load(“pathtoScriptableObject”);

also the SO has to be in a folder called Resources for this to work.