Hello
I just updated my Split Bezier node-group (Split Bezier(3.6)). You can use that in conjunction with the node-deletion mentioned by @sozap to accomplish what you’re after:
Split Bezier example (3.6).2.blend (86.8 KB)
This example works in versions 3.6+ (Offset Points of Curve required):
Basically here I’m splitting the curve into 3 curves on points where either of the handles are of type vector…
… then doing the resample, and then cleaning up by deleting any points that lie on a straight edge. Finally converting to mesh to merge vertices and converting back to a single curve.
Hope that helps.