Currently blocks are parsed using regex. It doesn't work for nested block. We should try to use twig parsing to get the blocks.