If I create a model using a pool and swimlanes to this effect:
All elements outside of the pool/swimlane(s), with exception of the sequence flows are ignored in the resulting BPMN exported file.
You can see this in the modeler rendered preview as such:
The resulting xml (Only the process element is included for brevity):
<process id="process" isExecutable="true">
<laneSet id="laneSet_process">
<lane id="sid-533F7CB4-D37E-47F9-BDA0-6E3A94FE7E42">
<flowNodeRef>startEvent1</flowNodeRef>
<flowNodeRef>sid-26B27446-3DB7-4207-BF66-21E8D590F894</flowNodeRef>
<flowNodeRef>sid-9C3F6414-B845-480D-82EE-C8E41D002D08</flowNodeRef>
<flowNodeRef>sid-8CF27992-0696-48E6-A985-9B2A6D4D0646</flowNodeRef>
<flowNodeRef>sid-2602F488-2FF0-4D43-8177-21B6C65E1774</flowNodeRef>
<flowNodeRef>sid-45A116F7-25D6-490E-9E3D-CB6FACF2214D</flowNodeRef>
</lane>
<lane id="sid-9ACE34E0-CD54-44DC-8EDA-68CFC6A3F71A">
<flowNodeRef>sid-1ABD315A-FBF4-4062-BFDD-C54FD570EB84</flowNodeRef>
<flowNodeRef>sid-9E4F0F3C-F9E9-40B5-98C8-FE797AADCD5E</flowNodeRef>
<flowNodeRef>sid-5A2DB0C8-27DB-4898-97B3-971DB2911450</flowNodeRef>
<flowNodeRef>sid-CC7D4F9F-0615-47C7-AF43-83B3B60485D8</flowNodeRef>
<flowNodeRef>sid-B45EBE05-2520-404A-B74F-F1754CF5A5B2</flowNodeRef>
</lane>
</laneSet>
<startEvent id="startEvent1" flowable:formFieldValidation="true"/>
<userTask id="sid-26B27446-3DB7-4207-BF66-21E8D590F894" flowable:formFieldValidation="true"/>
<userTask id="sid-1ABD315A-FBF4-4062-BFDD-C54FD570EB84" flowable:formFieldValidation="true"/>
<userTask id="sid-5A2DB0C8-27DB-4898-97B3-971DB2911450" flowable:formFieldValidation="true"/>
<exclusiveGateway id="sid-9E4F0F3C-F9E9-40B5-98C8-FE797AADCD5E"/>
<exclusiveGateway id="sid-9C3F6414-B845-480D-82EE-C8E41D002D08"/>
<sequenceFlow id="sid-8CF27992-0696-48E6-A985-9B2A6D4D0646" sourceRef="startEvent1"
targetRef="sid-26B27446-3DB7-4207-BF66-21E8D590F894"/>
<sequenceFlow id="sid-2602F488-2FF0-4D43-8177-21B6C65E1774" sourceRef="sid-26B27446-3DB7-4207-BF66-21E8D590F894"
targetRef="sid-9C3F6414-B845-480D-82EE-C8E41D002D08"/>
<sequenceFlow id="sid-45A116F7-25D6-490E-9E3D-CB6FACF2214D" sourceRef="sid-9C3F6414-B845-480D-82EE-C8E41D002D08"
targetRef="sid-611E2C4F-AEB6-4743-B888-07785972AAFB"/>
<sequenceFlow id="sid-B75E163A-F963-44BB-888C-C6E587E1952E" sourceRef="sid-611E2C4F-AEB6-4743-B888-07785972AAFB"
targetRef="sid-62789F79-87D8-4317-8F83-94C614DD7FB5">
<extensionElements>
<EDITOR_RESOURCEID><![CDATA[sid-B75E163A-F963-44BB-888C-C6E587E1952E]]></EDITOR_RESOURCEID>
</extensionElements>
</sequenceFlow>
<sequenceFlow id="sid-A0A6A9F7-A771-49AE-827D-098C34A2AD4E" sourceRef="sid-62789F79-87D8-4317-8F83-94C614DD7FB5"
targetRef="sid-3D6870A2-5C92-43BE-BB4D-4AF412C0B7B5">
<extensionElements>
<EDITOR_RESOURCEID><![CDATA[sid-A0A6A9F7-A771-49AE-827D-098C34A2AD4E]]></EDITOR_RESOURCEID>
</extensionElements>
</sequenceFlow>
<sequenceFlow id="sid-3D606C4C-3188-4209-8661-4191304157EC" sourceRef="sid-3D6870A2-5C92-43BE-BB4D-4AF412C0B7B5"
targetRef="sid-F9DB0631-D1C7-4987-96A4-3FDBB4874799">
<extensionElements>
<EDITOR_RESOURCEID><![CDATA[sid-3D606C4C-3188-4209-8661-4191304157EC]]></EDITOR_RESOURCEID>
</extensionElements>
</sequenceFlow>
<sequenceFlow id="sid-04DC5C03-E234-4038-A041-F5DA9E2EC139" sourceRef="sid-F9DB0631-D1C7-4987-96A4-3FDBB4874799"
targetRef="sid-7A4017A6-9114-4C68-8C9C-DF1FDD32D9C3">
<extensionElements>
<EDITOR_RESOURCEID><![CDATA[sid-04DC5C03-E234-4038-A041-F5DA9E2EC139]]></EDITOR_RESOURCEID>
</extensionElements>
</sequenceFlow>
<sequenceFlow id="sid-558DAB9E-4264-44DA-9F08-02B433A0E0CF" sourceRef="sid-7A4017A6-9114-4C68-8C9C-DF1FDD32D9C3"
targetRef="sid-1ABD315A-FBF4-4062-BFDD-C54FD570EB84">
<extensionElements>
<EDITOR_RESOURCEID><![CDATA[sid-558DAB9E-4264-44DA-9F08-02B433A0E0CF]]></EDITOR_RESOURCEID>
</extensionElements>
</sequenceFlow>
<sequenceFlow id="sid-CC7D4F9F-0615-47C7-AF43-83B3B60485D8" sourceRef="sid-1ABD315A-FBF4-4062-BFDD-C54FD570EB84"
targetRef="sid-9E4F0F3C-F9E9-40B5-98C8-FE797AADCD5E"/>
<sequenceFlow id="sid-B45EBE05-2520-404A-B74F-F1754CF5A5B2" sourceRef="sid-9E4F0F3C-F9E9-40B5-98C8-FE797AADCD5E"
targetRef="sid-5A2DB0C8-27DB-4898-97B3-971DB2911450"/>
</process>
This was discovered using the modeler bundled with Flowable 6.6.0