\documentclass[border=1cm]{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig[angle increment=30,atom style={scale=0.7}]{
H-[@{a1,0.5}1,1.5]O-[-1]-[1]-[-1]-[1]-[-1]O-[1](=[3]O)-[-1]-[1]-[-1]-[1]-[-1](=[9]O)-[@{z1,0.4}1,2]O(-[@{a2,0.8}:210,,,,draw=none])-[-1]-[1]-[-1]-[1]-[-1]O-[1](=[3]O)-[-1]*6([0]=-=(-[1](=[3]O)-[@{z2,0.6}-1,1.5]OH)-=-)
}
\polymerdelim[delimiters ={[]}, height = 33pt, depth = 28pt, indice = m]{a1}{z1}
\polymerdelim[delimiters ={[]}, height = 33pt, depth = 28pt, indice = n]{a2}{z2}
\end{document}