Shader Graph Sub Graph not working when SG is referenced in VFX Graph

I am using Unity 2022.3.7f1, so this bug may be gone in later versions. However, I thought I’d post about this issue to see if anyone knows a solution or the cause of this bug. And to help anyone who may be having this issue.

Basically, whenever I try to use a shader graph inside VFX Graph, if that shader graph has a sub graph inside it, it will not work correctly. I am using an experimental feature I believe, so that might explain why that is.

What I am trying to do is to create a depth fade (or distance fade, in my case), but because it is inside a sub graph, it does not work. I should mention just in case that there are multiple nested subgraphs.

Here are some screenshots to showcase what I am talking about:

As you can see, in the top shader graph the fade information is not visible, which is weird because it works fine when used outside vfx graph. However, when I remove all the nodes from the subgraphs and paste them into the main shader graph, it works as intended.