how to demultiplex when barcodes are inside the sequence?

Try this: cutadapt — QIIME 2 2019.10.0 documentation

Are your data paired end, or single end? Where in the read is the barcode located?

Colin